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

Method Sqrt

TSMotor3D.cpp:205–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205Motor3D Terathon::Sqrt(const Motor3D& Q)
206{
207 float b = InverseSqrt(Q.v.w * 2.0F + 2.0F);
208 float a = -Q.m.w * (b * b);
209
210 return (Motor3D(Q.v.x * b, Q.v.y * b, Q.v.z * b, Q.v.w * b + b, (Q.v.x * a + Q.m.x) * b, (Q.v.y * a + Q.m.y) * b, (Q.v.z * a + Q.m.z) * b, Q.m.w * (b * 0.5F)));
211}
212
213FlatPoint3D Terathon::Transform(const FlatPoint3D& p, const Motor3D& Q)
214{

Callers

nothing calls this directly

Calls 2

InverseSqrtFunction · 0.85
Motor3DClass · 0.85

Tested by

no test coverage detected