MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / operator *

Method operator *

TSQuaternion.cpp:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115
116Quaternion Terathon::operator *(const Quaternion& q1, const Quaternion& q2)
117{
118 return (Quaternion(q1.w * q2.x + q1.x * q2.w + q1.y * q2.z - q1.z * q2.y,
119 q1.w * q2.y - q1.x * q2.z + q1.y * q2.w + q1.z * q2.x,
120 q1.w * q2.z + q1.x * q2.y - q1.y * q2.x + q1.z * q2.w,
121 q1.w * q2.w - q1.x * q2.x - q1.y * q2.y - q1.z * q2.z));
122}
123
124Quaternion Terathon::operator *(const Quaternion& q, const Bivector3D& v)
125{

Callers

nothing calls this directly

Calls 1

QuaternionClass · 0.85

Tested by

no test coverage detected