All pastes #486644 Raw Edit

Plouj

public text v1 · immutable
·published 2007-05-14 00:14 UTC
rendered paste body
typedef float vec_t;
typedef vec_t vec2_t[2];
typedef vec_t vec3_t[3];

...

void ProjectPointOnPlane (vec3_t dst, const vec3_t point, const vec3_t normal)
{       
        float distance;
+---  7 lines: #if 0------------------------------------------------------------

        distance = DotProduct(normal, point);
+---  5 lines: #if 0------------------------------------------------------------

        dst[0] = point[0] - distance * normal[0];
        dst[1] = point[1] - distance * normal[1];
        dst[2] = point[2] - distance * normal[2];
}