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

Method Sqrt

TSQuaternion.cpp:132–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132Quaternion Terathon::Sqrt(const Quaternion& q)
133{
134 float f = InverseSqrt(q.w * 2.0F + 2.0F);
135 return (Quaternion(q.x * f, q.y * f, q.z * f, q.w * f + f));
136}
137
138Vector3D Terathon::Transform(const Vector3D& v, const Quaternion& q)
139{

Callers

nothing calls this directly

Calls 2

InverseSqrtFunction · 0.85
QuaternionClass · 0.85

Tested by

no test coverage detected