35 template<
class fpType>
37 template<
class fpType>
45 template<
class fpType>
49 friend std::istream& operator>>(std::istream &stream, Vector3<fpT> &vec);
129 virtual void set(
const fpType *
data);
137 virtual void get(fpType *storage)
const;
176 virtual fpType
getNorm()
const;
232 virtual const fpType &
operator[](
int ind)
const;
386 template<
class fpType>
396 template<
class fpType>
406 template<
class fpType>
407 std::ostream& operator<<(std::ostream &stream, const Vector3<fpType> &vec);
416 template<
class fpType>
virtual const fpType & operator[](int ind) const
fpType & z
Definition: Vector3.h:61
virtual void operator-=(const Vector3< fpType > &vec)
virtual bool operator!=(const Vector3< fpType > &vec) const
A class to store vectors of 3 elements.
Definition: Matrix3.h:35
std::istream & operator>>(std::istream &stream, Matrix3< fpType > &mat)
fpType & y
Definition: Vector3.h:59
virtual fpType dot(const Vector3< fpType > &vec) const
virtual fpType getNorm() const
virtual Vector3< fpType > operator-() const
Vector3< float > Vector3F
Definition: Vector3.h:431
virtual bool operator==(const Vector3< fpType > &vec) const
Vector3< double > Vector3D
Definition: Vector3.h:424
Matrix3< fpType > operator*(const double &scale, const Matrix3< fpType > &mat)
A class to store 3x3 rotation matrices.
Definition: Matrix3.h:48
virtual Matrix3< fpType > outer(const Vector3< fpType > &vec) const
virtual void operator=(const Vector3< fpType > &vec)
fpType data[3]
Definition: Vector3.h:53
#define PRECISION
Definition: global.h:51
virtual void operator/=(const fpType &s)
virtual Vector3< fpType > operator+(const Vector3< fpType > &vec) const
virtual Vector3< fpType > operator/(const fpType &s) const
fpType & x
Definition: Vector3.h:57
Vector3< fpType > getSqrtRotation() const
virtual void operator+=(const Vector3< fpType > &vec)
void operator*=(const Matrix3< fpType > &mat)
A class to store quaternions.
Definition: Matrix3.h:37
virtual bool compare(const Vector3< fpType > &vec, const fpType &precision=PRECISION) const
virtual Vector3< fpType > cross(const Vector3< fpType > &vec) const
virtual Vector3< fpType > operator*(const Matrix3< fpType > &mat) const
Vector3< fpType > getUnit() const
virtual Matrix3< fpType > crossMatrix() const
virtual void set(const fpType *data)