Perseus
    Preparing search index...
    • Compares two points, returning negative, 0, or positive, for use with Array.prototype.sort

      Note: This technically doesn't satisfy the total-ordering requirements of Array.prototype.sort unless equalityTolerance is 0. In some cases very close points that compare within a few equalityTolerances could appear in the wrong order.

      Parameters

      • point1: Point
      • point2: Point
      • OptionalequalityTolerance: number

      Returns number