distanceLineSegmentSquared static method

num distanceLineSegmentSquared(
  1. num px,
  2. num py,
  3. num ax,
  4. num ay,
  5. num bx,
  6. num by,
)

This static function returns the square of the distance from the point P to the finite line segment from point A to point B.

Implementation

static _i2.num distanceLineSegmentSquared(
  _i2.num px,
  _i2.num py,
  _i2.num ax,
  _i2.num ay,
  _i2.num bx,
  _i2.num by,
) =>
    _i4.callMethod(
      _declaredPoint,
      'distanceLineSegmentSquared',
      [
        px,
        py,
        ax,
        ay,
        bx,
        by,
      ],
    );