projectOntoLineSegment method

Point projectOntoLineSegment(
  1. num px,
  2. num py,
  3. num qx,
  4. num qy,
)

Modify this point to be the closest point to this point that is on a finite line segment. @param {number} px one end of the finite line segment @param {number} py one end of the finite line segment @param {number} qx the other end of the finite line segment @param {number} qy the other end of the finite line segment @return {Point} this modified Point @since 1.3

Implementation

_i3.Point projectOntoLineSegment(
  _i2.num px,
  _i2.num py,
  _i2.num qx,
  _i2.num qy,
) =>
    _i4.callMethod(
      this,
      'projectOntoLineSegment',
      [
        px,
        py,
        qx,
        qy,
      ],
    );