returns true if a plane is facing the viewer. takes the unrotated surface normal of the plane, and a point on it. The normal need not be normalized
| 104 | // returns true if a plane is facing the viewer. takes the unrotated surface |
| 105 | // normal of the plane, and a point on it. The normal need not be normalized |
| 106 | bool g3_CheckNormalFacing(vector *v, vector *norm) { |
| 107 | vector tempv; |
| 108 | |
| 109 | tempv = View_position - *v; |
| 110 | |
| 111 | return ((tempv * *norm) > 0); |
| 112 | } |
| 113 | |
| 114 | bool DoFacingCheck(vector *norm, g3Point **vertlist, vector *p) { |
| 115 | if (norm) { |
no outgoing calls
no test coverage detected