MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AlignHeight

Function AlignHeight

Source/Engine/Terrain/TerrainPatch.cpp:245–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 auto variable = (type*)TerrainUpdateScratchBuffer.Get()
244
245float AlignHeight(double height, double error)
246{
247 const double heightCount = height / error;
248 const int64 heightCountInt = (int64)heightCount;
249 return (float)(heightCountInt * error);
250}
251
252FORCE_INLINE void WriteHeight(const TerrainDataUpdateInfo& info, Color32& raw, const float height)
253{

Callers 1

CalculateHeightmapRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected