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

Method GetDirectionX

TSMotor3D.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18
19Vector3D Motor3D::GetDirectionX(void) const
20{
21 float A00 = 1.0F - (v.y * v.y + v.z * v.z) * 2.0F;
22 float A01 = v.x * v.y;
23 float A02 = v.z * v.x;
24 float B01 = v.z * v.w;
25 float B20 = v.y * v.w;
26
27 return (Vector3D(A00, (A01 + B01) * 2.0F, (A02 - B20) * 2.0F));
28}
29
30Vector3D Motor3D::GetDirectionY(void) const
31{

Callers

nothing calls this directly

Calls 1

Vector3DClass · 0.85

Tested by

no test coverage detected