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

Function MakePointsFromMinMax

Descent3/render.cpp:462–487  ·  view source on GitHub ↗

Takes a min,max vector and makes a surrounding cube from it

Source from the content-addressed store, hash-verified

460}
461// Takes a min,max vector and makes a surrounding cube from it
462void MakePointsFromMinMax(vector *corners, vector *minp, vector *maxp) {
463 corners[0].x = minp->x;
464 corners[0].y = maxp->y;
465 corners[0].z = minp->z;
466 corners[1].x = maxp->x;
467 corners[1].y = maxp->y;
468 corners[1].z = minp->z;
469 corners[2].x = maxp->x;
470 corners[2].y = minp->y;
471 corners[2].z = minp->z;
472 corners[3].x = minp->x;
473 corners[3].y = minp->y;
474 corners[3].z = minp->z;
475 corners[4].x = minp->x;
476 corners[4].y = maxp->y;
477 corners[4].z = maxp->z;
478 corners[5].x = maxp->x;
479 corners[5].y = maxp->y;
480 corners[5].z = maxp->z;
481 corners[6].x = maxp->x;
482 corners[6].y = minp->y;
483 corners[6].z = maxp->z;
484 corners[7].x = minp->x;
485 corners[7].y = minp->y;
486 corners[7].z = maxp->z;
487}
488
489// Rotates all the points in a room
490void RotateRoomPoints(room *rp, vector *world_vecs) {

Callers 5

ShootRaysToObjectFunction · 0.85
ExternalRoomVisibleFunction · 0.85
IsRoomVisibleFunction · 0.85
MarkFacesForRenderingFunction · 0.85
RotateAllExternalRoomsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected