MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetPreRotatedPointFast

Function GetPreRotatedPointFast

Descent3/TerrainSearch.cpp:312–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312static inline void GetPreRotatedPointFast(vector *dest, int x, int z, int yvalue) {
313 ASSERT(yvalue >= 0 && yvalue <= 255);
314
315 // If the terrain is supposed to be flat, bash this to zero
316#ifdef EDITOR
317 if (Flat_terrain) {
318 yvalue = 0;
319 }
320#endif
321
322 *dest = TS_PreRows[z];
323 *dest += TS_RVectorAdd * x;
324 *dest += *GetDYVector(yvalue);
325}
326
327void GetPreRotatedPoint(g3Point *dest, int x, int z, int yvalue) {
328 ASSERT(yvalue >= 0 && yvalue <= 255);

Callers 1

SearchQuadTreeFunction · 0.85

Calls 1

GetDYVectorFunction · 0.85

Tested by

no test coverage detected