MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / GetPosition

Method GetPosition

src/Nazara/Utility/Node.cpp:147–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 Vector3f Node::GetPosition(CoordSys coordSys) const
148 {
149 switch (coordSys)
150 {
151 case CoordSys_Global:
152 if (!m_derivedUpdated)
153 UpdateDerived();
154
155 return m_derivedPosition;
156
157 case CoordSys_Local:
158 return m_position;
159 }
160
161 NazaraError("Coordinate system out of enum (0x" + String::Number(coordSys, 16) + ')');
162 return Vector3f();
163 }
164
165 Vector3f Node::GetRight() const
166 {

Callers 15

UpdateBoundingVolumeMethod · 0.45
GetEyePositionMethod · 0.45
UpdateViewMatrixMethod · 0.45
OnUpdateMethod · 0.45
OnUpdateMethod · 0.45
OnUpdateMethod · 0.45
DrawMethod · 0.45
DrawOpaqueModelsMethod · 0.45
DrawTransparentModelsMethod · 0.45
SortForOrthographicMethod · 0.45
SortForPerspectiveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected