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

Function GetDYVector

Descent3/TerrainSearch.cpp:296–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296static inline vector *GetDYVector(int h) {
297 vector *dyp;
298
299 dyp = &Terrain_y_cache[h];
300
301 if (!Terrain_y_flags[h]) {
302 vector up_vector = {0, h * TERRAIN_HEIGHT_INCREMENT, 0};
303
304 *dyp = up_vector * *TS_View_matrix;
305
306 Terrain_y_flags[h] = 1;
307 }
308
309 return dyp;
310}
311
312static inline void GetPreRotatedPointFast(vector *dest, int x, int z, int yvalue) {
313 ASSERT(yvalue >= 0 && yvalue <= 255);

Callers 2

GetPreRotatedPointFastFunction · 0.85
GetPreRotatedPointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected