std-ptonseg-p


Synopsis

(std-ptonseg-p <p1> <p2> <testpt>) ; point on segment?

Description

STD-PTONSEG-P returns T if the point testpt is exactly on the straight line segment between p1 and p2 (including equal to one of the points) and nil otherwise (below, above or outside)

The used numeric tolerance is 1e-6. (i.e. 0.000001)

Arguments

p1, p2, testpt: 2d or 3d points

Return Value

T or nil

Side Effects

None.

Module

(std-require 'STDPOINT)

Defined in STDPOINT since v0.4008.