Back to class index
| Quat::MulSyntaxQuat Quat::Mul(const Quat &rhs) const; [1 line of code]Multiplies two quaternions in the order 'this * rhs'. This corresponds to the concatenation of the two operations ('this * rhs * vector' applies the rotation 'rhs' first, followed by the rotation 'this'. Performance8.21nsecs/call ≈ 121.8M calls/second ≈ 2.03M calls/frame (@ 60fps). SyntaxQuat Quat::Mul(const float3x3 &rhs) const; [1 line of code]Converts the given matrix to a quaternion and computes the concatenated transform 'this * rhs'. Performance0.074μsecs/call ≈ 13.53M calls/second ≈ 225.55k calls/frame (@ 60fps). Syntaxfloat3 Quat::Mul(const float3 &vector) const; [1 line of code]float4 Quat::Mul(const float4 &vector) const; [1 lines of code] Transforms the given vector by this Quaternion. Note Technically, this function does not perform a simple multiplication of 'q * v', but instead performs a conjugation operation 'q*v*q^-1'. This corresponds to transforming the given vector by this Quaternion. Performancefloat3 Quat::Mul(const float3 &vector) const20.526nsecs/call ≈ 48.72M calls/second ≈ 811.97k calls/frame (@ 60fps). 24.632nsecs/call ≈ 40.6M calls/second ≈ 676.64k calls/frame (@ 60fps). Leave a Comment |