point_distance_to_plane

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION
SEE ALSO

NAME

point_distance_to_plane, point_is_inside_plane - distance from point to plane

SYNOPSIS

#include <matvec.h>

float point_distance_to_plane (const float *plane, const float *point);
int point_is_inside_plane (const float *plane, const float *point);

DESCRIPTION

point_distance_to_plane calculates the (shortest) distance from the point point to the plane plane. This distance is positive if the point is "inside" the plane -- that is, if the normal vector drawn from the plane points towards the point. It is negative if the point is "outside" the plane. It is zero if the point lies on the plane.
point_is_inside_plane returns true if the point is strictly inside the plane, and false if the point lies on the plane or is outside. It is much faster to compute this than to use point_distance_to_plane and take the sign of the result.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

c2lib-1.2.13

SEE ALSO

plane_coefficients(3), point_distance_to_face(3).