MCPcopy Create free account
hub / github.com/OGRECave/ogre / convertGridToWorldSpace

Method convertGridToWorldSpace

Components/Paging/src/OgreGrid2DPageStrategy.cpp:131–149  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

129 }
130 //---------------------------------------------------------------------
131 void Grid2DPageStrategyData::convertGridToWorldSpace(const Vector2& grid, Vector3& world)
132 {
133 // Note that we don't set the 3rd coordinate, let the caller determine that
134 switch(mMode)
135 {
136 case G2D_X_Z:
137 world.x = grid.x;
138 world.z = -grid.y;
139 break;
140 case G2D_X_Y:
141 world.x = grid.x;
142 world.y = grid.y;
143 break;
144 case G2D_Y_Z:
145 world.z = -grid.x;
146 world.y = grid.y;
147 break;
148 }
149 }
150 //---------------------------------------------------------------------
151 void Grid2DPageStrategyData::updateDerivedMetrics()
152 {

Callers 1

updateDebugDisplayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected