UNPKG

gis-tools-ts

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

47 lines 3 kB
/** * Get the orientation of a tetrahedron querying against a sphere * @param ax - x coordinate of first point * @param ay - y coordinate of first point * @param az - z coordinate of first point * @param bx - x coordinate of second point * @param by - y coordinate of second point * @param bz - z coordinate of second point * @param cx - x coordinate of origin point to create the abcd plane * @param cy - y coordinate of origin point to create the abcd plane * @param cz - z coordinate of origin point to create the abcd plane * @param dx - x coordinate of second origin point to create the abcd plane * @param dy - y coordinate of second origin point to create the abcd plane * @param dz - z coordinate of second origin point to create the abcd plane * @param ex - x coordinate of compare point * @param ey - y coordinate of compare point * @param ez - z coordinate of compare point * @returns - a positive value if the point-plane of a-b-c-d via e occur in counterclockwise order * (d lies to the left of the directed line defined by points a and b). * - Returns a negative value if they occur in clockwise order (d lies to the right of the directed line ab). * - Returns zero if they are collinear. */ export declare function insphere(ax: number, ay: number, az: number, bx: number, by: number, bz: number, cx: number, cy: number, cz: number, dx: number, dy: number, dz: number, ex: number, ey: number, ez: number): number; /** * Get the orientation of a tetrahedron using a fast method that uses the volume of the tetrahedron * @param pax - x coordinate of first point * @param pay - y coordinate of first point * @param paz - z coordinate of first point * @param pbx - x coordinate of second point * @param pby - y coordinate of second point * @param pbz - z coordinate of second point * @param pcx - x coordinate of origin point to create the abcd plane * @param pcy - y coordinate of origin point to create the abcd plane * @param pcz - z coordinate of origin point to create the abcd plane * @param pdx - x coordinate of second origin point to create the abcd plane * @param pdy - y coordinate of second origin point to create the abcd plane * @param pdz - z coordinate of second origin point to create the abcd plane * @param pex - x coordinate of compare point * @param pey - y coordinate of compare point * @param pez - z coordinate of compare point * @returns - 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. */ export declare function inspherefast(pax: number, pay: number, paz: number, pbx: number, pby: number, pbz: number, pcx: number, pcy: number, pcz: number, pdx: number, pdy: number, pdz: number, pex: number, pey: number, pez: number): number; //# sourceMappingURL=insphere.d.ts.map