MCPcopy Create free account
hub / github.com/JACoders/OpenJK / CM_SignbitsForNormal

Function CM_SignbitsForNormal

code/qcommon/cm_patch.cpp:133–143  ·  view source on GitHub ↗

================= CM_SignbitsForNormal ================= */

Source from the content-addressed store, hash-verified

131=================
132*/
133static int CM_SignbitsForNormal( vec3_t normal ) {
134 int bits, j;
135
136 bits = 0;
137 for (j=0 ; j<3 ; j++) {
138 if ( normal[j] < 0 ) {
139 bits |= 1<<j;
140 }
141 }
142 return bits;
143}
144
145/*
146=====================

Callers 2

CM_FindPlane2Function · 0.70
CM_FindPlaneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected