PointOnLineSegment Cellzilla2D Home

Description

Determines if a point falls on a line segment.

Needs["Cellzilla2D`"];

Return Value

PointOnLineSegment[{{x1,y1}, {x2,y2}}, {x,y}, tolerance] returns True if {x,y} falls on the line segment from {x1,y1} to {x2,y2} to within the specified tolerance. The tolerance is relative to the line segment length.

PointOnLineSegment[{{x1,y1}, {x2,y2}}, {x,y}] returns True if {x,y} falls on the line segment from {x1,y1} to {x2,y2} to within a tolerance of 10-5.

Options

Example

Implementation Notes

See Also



[2009-06-27T14:36:46-0700 ]