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

Function g3_RotatePoint

renderer/HardwarePoints.cpp:63–76  ·  view source on GitHub ↗

rotates a point. returns codes. does not check if already rotated

Source from the content-addressed store, hash-verified

61
62// rotates a point. returns codes. does not check if already rotated
63uint8_t g3_RotatePoint(g3Point *dest, vector *src) {
64 // store the pre-rotated point
65 dest->p3_vecPreRot = *src;
66
67 // find the point offset from the view/camera position
68 vector tempv = *src - View_position;
69
70 // rotate the point by the view/camera's orientation
71 dest->p3_vec = tempv * View_matrix;
72
73 // determine the flags for the point
74 dest->p3_flags = PF_ORIGPOINT;
75 return g3_CodePoint(dest);
76}
77
78// projects a point
79void g3_ProjectPoint(g3Point *p) {

Callers 15

g3_DrawBitmapFunction · 0.85
g3_DrawRotatedBitmapFunction · 0.85
RotateModelPointsFunction · 0.85
CheckRoomFunction · 0.85
DrawRoomFunction · 0.85
DrawRoomRotatedFunction · 0.85
DrawRoomFaceFunction · 0.85
DrawFaceEdgeFunction · 0.85
DrawRoomObjectsFunction · 0.85
DrawVertBoxFunction · 0.85

Calls 1

g3_CodePointFunction · 0.85

Tested by

no test coverage detected