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

Method Direction

engine/Poseidon/Network/NetworkMsg.cpp:674–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672 float m21 = (m21_sq >= 0 ? sqrt(m21_sq) : 0) * _21sign;
673 return Vector3(m01, m11, m21);
674}
675
676Vector3 EncodedMatrix3::Direction() const
677{
678 float m02 = DecodeFloat16(_02c);
679 float m12 = DecodeFloat16(_12c);
680 float m22_sq = 1 - m02 * m02 - m12 * m12;
681 float m22 = (m22_sq >= 0 ? sqrt(m22_sq) : 0) * _22sign;
682 return Vector3(m02, m12, m22);
683}
684

Callers 2

CalculateErrorMethod · 0.45
EncodeMethod · 0.45

Calls 3

DecodeFloat16Function · 0.85
sqrtFunction · 0.85
Vector3Class · 0.50

Tested by

no test coverage detected