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

    Function orient3d

    • Get the orientation of a tetrahedron

      Parameters

      • ax: number

        x coordinate of first point

      • ay: number

        y coordinate of first point

      • az: number

        z coordinate of first point

      • bx: number

        x coordinate of second point

      • by: number

        y coordinate of second point

      • bz: number

        z coordinate of second point

      • cx: number

        x coordinate of origin point to create the abc plane

      • cy: number

        y coordinate of origin point to create the abc plane

      • cz: number

        z coordinate of origin point to create the abc plane

      • dx: number

        x coordinate of compare point

      • dy: number

        y coordinate of compare point

      • dz: number

        z coordinate of compare point

      Returns number

      • a positive value if the point-plane of a-b-c via d 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.