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

    Function inspherefast

    • Get the orientation of a tetrahedron using a fast method that uses the volume of the tetrahedron

      Parameters

      • pax: number

        x coordinate of first point

      • pay: number

        y coordinate of first point

      • paz: number

        z coordinate of first point

      • pbx: number

        x coordinate of second point

      • pby: number

        y coordinate of second point

      • pbz: number

        z coordinate of second point

      • pcx: number

        x coordinate of origin point to create the abcd plane

      • pcy: number

        y coordinate of origin point to create the abcd plane

      • pcz: number

        z coordinate of origin point to create the abcd plane

      • pdx: number

        x coordinate of second origin point to create the abcd plane

      • pdy: number

        y coordinate of second origin point to create the abcd plane

      • pdz: number

        z coordinate of second origin point to create the abcd plane

      • pex: number

        x coordinate of compare point

      • pey: number

        y coordinate of compare point

      • pez: 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.