Back to class index
Quat[Class Summary]
x
y
z
w
identity[static][const]
nan[static][const]
ctor (+7 overloads)
WorldX()[const]
WorldY()[const]
WorldZ()[const]
Axis()[const]
Angle()[const]
Dot(rhs)[const]
LengthSq()[const]
Length()[const]
Normalize()
Normalized()[const]
IsNormalized(epsilon)[const]
IsInvertible(epsilon)[const]
IsFinite()[const]
Equals(rhs,epsilon)[const]
ptr() (+1 overload)
Inverse()
Inverted()[const]
InverseAndNormalize()
Conjugate()
Conjugated()[const]
Transform(x,y,z)[const] (+2 overloads)
Lerp(target,t)[const]
Slerp(target,t)[const]
AngleBetween(target)[const]
AxisFromTo(target)[const]
ToAxisAngle(...)[const]
SetFromAxisAngle(...)
Set(matrix) (+3 overloads)
ToEulerXYX()[const]
ToFloat3x3()[const]
ToFloat3x4()[const]
ToFloat4x4()[const]
operator*(rhs)[const] (+1 overload)
operator/(rhs)[const]
Mul(rhs)[const] (+3 overloads)
Lerp(source,target,t)[static]
Slerp(source,target,t)[static]
LookAt(...)[static]
RotateX(angleRadians)[static]
RotateY(angleRadians)[static]
RotateZ(angleRadians)[static]
RotateAxisAngle(...)[static]
RotateFromTo(...)[static] (+1 overload)
FromEuler***(x2,y,x)[static]
RandomRotation(lcg)[static]
FromString(str)[static]

Quat::Set

Syntax

void 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.

Performance

void Quat::Set(const float3x3 &matrix)

49.263nsecs/call ≈ 20.3M calls/second ≈ 338.32k calls/frame (@ 60fps).
This function does not perform dynamic memory allocation.

void Quat::Set(const float3x4 &matrix)

49.263nsecs/call ≈ 20.3M calls/second ≈ 338.32k calls/frame (@ 60fps).
This function does not perform dynamic memory allocation.

void Quat::Set(const float4x4 &matrix)

49.263nsecs/call ≈ 20.3M calls/second ≈ 338.32k calls/frame (@ 60fps).
This function does not perform dynamic memory allocation.

Syntax

void 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.

Performance

This function could not be profiled. Either the function body is too small, or appropriate function parameters could not be generated.
This function does not perform dynamic memory allocation.

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index