s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
37 lines • 1.63 kB
TypeScript
/**
* Constants for orient2d
*/
export interface Orient2dConstants {
B: Float64Array;
C1: Float64Array;
C2: Float64Array;
D: Float64Array;
u: Float64Array;
}
/**
* @param ax - x coordinate of first point
* @param ay - y coordinate of first point
* @param bx - x coordinate of second point
* @param by - y coordinate of second point
* @param cx - x coordinate of comparison point
* @param cy - y coordinate of comparison point
* @returns - 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.
*/
export declare function orient2d(ax: number, ay: number, bx: number, by: number, cx: number, cy: number): number;
/**
* @param ax - x coordinate of first point
* @param ay - y coordinate of first point
* @param bx - x coordinate of second point
* @param by - y coordinate of second point
* @param cx - x coordinate of comparison point
* @param cy - y coordinate of comparison point
* @returns - 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.
*/
export declare function orient2dfast(ax: number, ay: number, bx: number, by: number, cx: number, cy: number): number;
//# sourceMappingURL=orient2d.d.ts.map