point_distance_to_line_segment

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION
SEE ALSO

NAME

point_distance_to_line_segment - shortest distance from a point to a line segment

SYNOPSIS

#include <matvec.h>

float point_distance_to_line_segment (const float *point, const float *line_point0, const float *line_point1);

DESCRIPTION

Given a point and a line segment from line_point0 to line_point1, compute the shortest distance from the point to the line segment.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

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

VERSION

c2lib-1.2.13

SEE ALSO

point_distance_to_line(3).