170 void Saturate(
float min,
float max);
191 T &operator[](
size_t idx);
192 const T &operator[](
size_t idx)
const;
206 typedef Vector3D<float> Vector3Df;
217 template<
typename T> Vector3D<T>
operator+(
const Vector3D<T> &vectorA,
const Vector3D<T> &vectorB);
228 template<
typename T> Vector3D<T>
operator-(
const Vector3D<T> &vectorA,
const Vector3D<T> &vectorB);
238 template<
typename T> Vector3D<T>
operator-(
const Vector3D<T> &vector);
249 template<
typename T> Vector3D<T>
operator/(
const Vector3D<T> &vector,
float coeff);
260 template<
typename T> Vector3D<T>
operator*(
const Vector3D<T> &vectorA,
const Vector3D<T> &vectorB);
271 template<
typename T> Vector3D<T>
operator*(
const Vector3D<T> &vector,
float coeff);
282 template<
typename T> Vector3D<T>
operator*(
float coeff,
const Vector3D<T> &vector);
293 template<
typename T> Vector3D<T>
CrossProduct(
const Vector3D<T> &vectorA,
const Vector3D<T> &vectorB);
304 template<
typename T>
float DotProduct(
const Vector3D<T> &vectorA,
const Vector3D<T> &vectorB);
void Normalize(void)
Normalize.
void RotateYDeg(float value)
y axis rotation
namespace of the flair Framework
Definition: Ahrs.h:19
void RotateZ(float value)
z axis rotation
Class defining a 3D vector.
Definition: Vector3D.h:29
Class defining a 2D vector.
Definition: Vector2D.h:24
Class defining a rotation matrix.
Definition: RotationMatrix.h:26
void RotateZDeg(float value)
z axis rotation
Class defining a 2D vector.
void Saturate(const Vector3D< T > &min, const Vector3D< T > &max)
Saturate.
T y
y
Definition: Vector3D.h:56
Vector2D< T > To2Dxy(void) const
Convert to a Vector2D.
void RotateY(float value)
y axis rotation
void Rotate(const RotationMatrix &matrix)
rotation
Vector2D< T > operator/(const Vector2D< T > &vector, float coeff)
Divid.
void RotateXDeg(float value)
x axis rotation
T z
z
Definition: Vector3D.h:61
Quaternion operator*(Quaternion const &quaternionA, Quaternion const &quaterniontB)
Multiply.
Quaternion operator-(Quaternion const &quaternionA, Quaternion const &quaterniontB)
Substract.
float DotProduct(const Vector3D< T > &vectorA, const Vector3D< T > &vectorB)
Dot product.
T x
x
Definition: Vector3D.h:51
Vector3D< T > CrossProduct(const Vector3D< T > &vectorA, const Vector3D< T > &vectorB)
Cross product.
float GetNorm(void) const
Norm.
Vector3D(T x=0, T y=0, T z=0)
Constructor.
void RotateX(float value)
x axis rotation
Quaternion operator+(Quaternion const &quaterniontA, Quaternion const &quaterniontB)
Add.
Class defining a quaternion.
Definition: Quaternion.h:26