Skip to content

Commit

Permalink
fix call operator in template
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Feb 27, 2024
1 parent bac8a76 commit 12d6db1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/threepp/math/Quaternion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ namespace threepp {
template<class ArrayLike>
void toArray(ArrayLike& array, unsigned int offset = 0) const {

array[offset] = this->x();
array[offset + 1] = this->y();
array[offset + 2] = this->z();
array[offset + 3] = this->w();
array[offset] = this->x;
array[offset + 1] = this->y;
array[offset + 2] = this->z;
array[offset + 3] = this->w;
}

friend std::ostream& operator<<(std::ostream& os, const Quaternion& v) {
Expand Down

0 comments on commit 12d6db1

Please sign in to comment.