MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / DirectionUp

Method DirectionUp

engine/Poseidon/Network/NetworkMsg.cpp:664–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662
663 m.SetDirectionAndUp(dir, up);
664}
665
666Vector3 EncodedMatrix3::DirectionUp() const
667{
668 float m01 = DecodeFloat16(_01c);
669 float m11 = DecodeFloat16(_11c);
670
671 float m21_sq = 1 - m01 * m01 - m11 * m11;
672 float m21 = (m21_sq >= 0 ? sqrt(m21_sq) : 0) * _21sign;
673 return Vector3(m01, m11, m21);
674}
675

Callers 15

TickViewerControlsMethod · 0.80
PerformSoundMethod · 0.80
GroundCollisionMethod · 0.80
GroundCollisionPlaneMethod · 0.80
UpdatePositionMethod · 0.80
CalculateErrorMethod · 0.80
InsideCameraMethod · 0.80
GetWeaponRelTransformMethod · 0.80
SimulateMethod · 0.80
LogFMatrixFunction · 0.80
VerifyStructureMethod · 0.80

Calls 3

DecodeFloat16Function · 0.85
sqrtFunction · 0.85
Vector3Class · 0.50

Tested by

no test coverage detected