compareWithLineSegmentPoint method

num compareWithLineSegmentPoint(
  1. Point p,
  2. Point q
)

Compare this point with a finite line segment given by two Points.

This method compares this point with a finite line segment determined by the given two Points. 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. @param {Point} p the start of the finite line segment @param {Point} q the end of the finite line segment @return {number} <0 if this Point is on the right side of the line segment, or >0 if this Point is on the left side, or zero if exactly on the finite line segment @since 2.2

Implementation

_i2.num compareWithLineSegmentPoint(
  _i3.Point p,
  _i3.Point q,
) =>
    _i4.callMethod(
      this,
      'compareWithLineSegmentPoint',
      [
        p,
        q,
      ],
    );