Back to class index
| Quat::SetSyntaxvoid Quat::Set(const float3x3 &matrix); [13 lines of code]void Quat::Set(const float3x4 &matrix); [12 lines of code] void Quat::Set(const float4x4 &matrix); [13 lines of code] Sets this quaternion to represent the same rotation as the given matrix. Performancevoid Quat::Set(const float3x3 &matrix)49.263nsecs/call ≈ 20.3M calls/second ≈ 338.32k calls/frame (@ 60fps). 49.263nsecs/call ≈ 20.3M calls/second ≈ 338.32k calls/frame (@ 60fps). 49.263nsecs/call ≈ 20.3M calls/second ≈ 338.32k calls/frame (@ 60fps). Syntaxvoid Quat::Set(float x, float y, float z, float w); [7 lines of code]Sets all elements of this quaternion. Note This sets the raw elements, which do *not* correspond directly to the axis and angle of the rotation. Use SetFromAxisAngle to define this Quat using a rotation axis and an angle. PerformanceThis function could not be profiled. Either the function body is too small, or appropriate function parameters could not be generated. Leave a Comment |