Back to class index
| Quat::QuatSyntaxQuat::Quat(); [1 line of code]SyntaxQuat::Quat(const float *data); [16 lines of code]Quat::Quat(const float3x3 &rotationMatrix); [1 lines of code] Quat::Quat(const float3x4 &rotationMatrix); [1 lines of code] Quat::Quat(const float4x4 &rotationMatrix); [1 lines of code] Quat::Quat(float x, float y, float z, float w); [9 lines of code] Constructs a quaternion from the given data buffer. Note The input data is not normalized after construction, this has to be done manually. Note The input data is not normalized after construction, this has to be done manually. Parametersconst float *dataAn array of four floats to use for the quaternion, in the order 'x, y, z, w'. (== 'i, j, k, r') floatxThe factor of i. floatyThe factor of j. floatzThe factor of k. floatwThe scalar factor (or 'w'). SyntaxQuat::Quat(const float3 &rotationAxis, float rotationAngleRadians); [1 line of code]Quat::Quat(const float4 &rotationAxis, float rotationAngleRadians); [1 lines of code] Constructs this quaternion by specifying a rotation axis and the amount of rotation to be performed about that axis. Parametersconst float3 &rotationAxisThe normalized rotation axis to rotate about. If using the float4 version of the constructor, the w component of this vector must be 0. floatrotationAngleRadiansThe angle to rotate by, in radians. For example, Pi/4.f equals to 45 degrees, Pi/2.f is 90 degrees, and Pi is 180 degrees. See Also |