All pastes #486835 Raw Edit

Plouj

public text v1 · immutable
·published 2007-05-14 02:41 UTC
rendered paste body
/**
 * @brief Projects a point on a plane passing through the origin
 * @param[in] point Coordinates of the point to project
 * @param[in] normal The normal vector of the plane
 * @param[out] dst Coordinates of the projection on the plane
 * @pre @c Non-null pointers and a normalized normal vector.
 */
void ProjectPointOnPlane (vec3_t dst, const vec3_t point, const vec3_t normal)
{       
        float distance; /**< closest distance from the point to the plane */

#ifdef DEBUG
        assert(dst);
        assert(point);
        assert(normal);
#endif