MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ToDirection

Method ToDirection

TombEngine/Math/Objects/AxisAngle.cpp:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 Vector3 AxisAngle::ToDirection() const
119 {
120 // TODO: Works, but need to find a way without EulerAngles. -- Sezz 2023.03.08
121 auto refDir = Geometry::RotatePoint(Vector3::Right, EulerAngles(_axis));
122 return Geometry::RotatePoint(refDir, *this);
123 }
124
125 EulerAngles AxisAngle::ToEulerAngles() const
126 {

Callers 15

SpawnVehicleWakeFunction · 0.45
ControlElectricCleanerFunction · 0.45
ControlTrainFunction · 0.45
UpdateFishSwarmFunction · 0.45
UpdateMethod · 0.45
ControlWaterfallFunction · 0.45
UpdateFireflySwarmFunction · 0.45
ControlSquishyBlockFunction · 0.45
LookCameraFunction · 0.45
CreatureTurnFunction · 0.45
FireWeaponFunction · 0.45
LaraCheatFunction · 0.45

Calls 2

RotatePointFunction · 0.85
EulerAnglesClass · 0.70

Tested by 1

TestMethod · 0.36