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

Method Transform

TSQuaternion.cpp:138–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138Vector3D Terathon::Transform(const Vector3D& v, const Quaternion& q)
139{
140 Bivector3D u = (!q.xyz ^ v) * 2.0F;
141 return ((q.xyz ^ u) + !u * q.w + v);
142}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected