MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / floatToFixed

Function floatToFixed

Engine/source/terrain/terrFile.h:270–273  ·  view source on GitHub ↗

Conversion from floating point to 11.5 fixed point.

Source from the content-addressed store, hash-verified

268
269/// Conversion from floating point to 11.5 fixed point.
270inline U16 floatToFixed( F32 val )
271{
272 return U16(val * 32.0 + 0.5f);
273}
274
275inline bool TerrainFile::isPointInTerrain( U32 x, U32 y ) const
276{

Callers 6

buildConvexMethod · 0.85
buildPolyListMethod · 0.85
setSizeMethod · 0.85
importMethod · 0.85
setHeightMethod · 0.85
terrImport.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected