CSAD
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | Friends | List of all members
bt::quaternionf Class Reference

quaternionf - the rotation around the vector More...

Public Member Functions

_FORCEINLINE quaternionf ()
 not initialised quaternion
 
_FORCEINLINE quaternionf (float _x, float _y, float _z, float _rad)
 
_FORCEINLINE quaternionf (vector3f vec, double rad)
 
_FORCEINLINE quaternionf (vector4f &vec)
 
_FORCEINLINE void euler (double a, double b, double c)
 Set Rotation form euler angles.
 
_FORCEINLINE quaternionf invert ()
 Reverse rotation.
 
_FORCEINLINE const quaternionf operator! ()
 Reverse rotation.
 
_FORCEINLINE float & operator[] (unsigned int id) const
 Field reference as to the elements of the array.
 
_FORCEINLINE void reset ()
 Set to identity.
 
_FORCEINLINE void toMatrix (matrix4f &_c)
 Create rotation matrix.
 

Public Attributes

BT_API TYPEINFO_H
 Статический индентификатор типа quaternionf::t()
 
float w
 Factor.
 
float x
 Factor.
 
float y
 Factor.
 
float z
 Factor.
 

Friends

_FORCEINLINE friend quaternionf operator! (quaternionf &_a)
 Reverse rotation.
 

Detailed Description

quaternionf - the rotation around the vector

Quaternions are used in the system of Hypercomplex numbers, form a vector space of dimension four over the field of real numbers. Vector quaternions form a three-dimensional real vector space, which can be used to describe any rotation of this space as the object is rotated around the center of the starting position in the final, at the expense derived from the rotation of the fixed points lying on the straight line and the angle of rotation around it.

See Also
quaternionf, bt: math

Constructor & Destructor Documentation

_FORCEINLINE bt::quaternionf::quaternionf ( float  _x,
float  _y,
float  _z,
float  _rad 
)
inline
Parameters
_x- vector x
_y- vector y
_z- vector z
_rad- rotation in radian
_FORCEINLINE bt::quaternionf::quaternionf ( vector3f  vec,
double  rad 
)
inline
Parameters
vec- vector
rad- rotation in radian
_FORCEINLINE bt::quaternionf::quaternionf ( vector4f vec)
inline
Parameters
vec- vector