gis-tools-ts - v0.6.0
    Preparing search index...

    Function orient2d

    • Check the orientation of c relative to the line through a and b

      Parameters

      • ax: number

        x coordinate of first point

      • ay: number

        y coordinate of first point

      • bx: number

        x coordinate of second point

      • by: number

        y coordinate of second point

      • cx: number

        x coordinate of comparison point

      • cy: number

        y coordinate of comparison point

      Returns number

      • a positive value if the points a, b, and c occur in counterclockwise order (c lies to the left of the directed line defined by points a and b).
      • Returns a negative value if they occur in clockwise order (c lies to the right of the directed line ab).
      • Returns zero if they are collinear.