An infinite 2D line going through two specified Points.
Constructor
Variables
Methods
inlinedistanceSq(p:Point):Float
Returns a squared distance from Line axis to Point p
.
Cheaper to calculate than distance
and can be used for more optimal comparison operations.
inlineintersect(l:Line):Null<Point>
Returns an intersection Point between given Line l
and this Line with both treated as infinite lines.
Returns null
if lines are almost colinear (less than epsilon value difference)
inlineintersectWith(l:Line, pt:Point):Bool
Tests for intersection between given Line l
and this Line with both treated as infinite lines.
Returns false
if lines are almost colinear (less than epsilon value difference).
Otherwise returns true
, and fill Point pt
with intersection point.