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

Method GetDirectionY

TSMotor3D.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30Vector3D Motor3D::GetDirectionY(void) const
31{
32 float A11 = 1.0F - (v.z * v.z + v.x * v.x) * 2.0F;
33 float A01 = v.x * v.y;
34 float A12 = v.y * v.z;
35 float B01 = v.z * v.w;
36 float B12 = v.x * v.w;
37
38 return (Vector3D((A01 - B01) * 2.0F, A11, (A12 + B12) * 2.0F));
39}
40
41Vector3D Motor3D::GetDirectionZ(void) const
42{

Callers

nothing calls this directly

Calls 1

Vector3DClass · 0.85

Tested by

no test coverage detected