compareWithLineSegment static method
This static function compares a point with a finite line segment.
If the point is on the finite line segment, this returns zero. If the point is on the left side of the segment, this returns a positive number. If the point is on the right side of the segment, this returns a negative number. If the point is on the infinitely extended line but not within the segment, then this returns a positive number if the point is beyond the end of the segment when going from A1 to A2, or this returns a negative number if the point comes before the segment's start at A1.
Implementation
static _i2.num compareWithLineSegment(
_i2.num a1x,
_i2.num a1y,
_i2.num a2x,
_i2.num a2y,
_i2.num px,
_i2.num py,
) =>
_i4.callMethod(
_declaredPoint,
'compareWithLineSegment',
[
a1x,
a1y,
a2x,
a2y,
px,
py,
],
);