NAME

is_point_in_segment - Determins if point is inside segment

SYNOPSIS

#include "g/g_geometry.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int is_point_in_segment
(
	const Vector *p1_vp,
	const Vector *p2_vp,
	const Vector *test_point_vp
);

DESCRIPTION

This routine determines if a point, assumed to be co-linear with a segment, is between the endpoints. The end-points can be of any dimension. This routine assumes that the points are co-linear, but does not check.

RETURNS

TRUE if the point is inside the segment, FALSE if not, and ERROR if there are any problems, with an error message being set.

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard

SEE ALSO

get_polygon_CM_and_area , get_ordered_polygon_CM_and_area , is_point_in_polygon , order_planer_points