UNPKG

ol

Version:

OpenLayers mapping library

65 lines 3.28 kB
/** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride Stride. * @return {boolean} Is clockwise. */ export function linearRingIsClockwise(flatCoordinates: number[], offset: number, end: number, stride: number): boolean; /** * Determines if linear rings are oriented. By default, left-hand orientation * is tested (first ring must be clockwise, remaining rings counter-clockwise). * To test for right-hand orientation, use the `opt_right` argument. * * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {Array<number>} ends Array of end indexes. * @param {number} stride Stride. * @param {boolean=} opt_right Test for right-hand orientation * (counter-clockwise exterior ring and clockwise interior rings). * @return {boolean} Rings are correctly oriented. */ export function linearRingsAreOriented(flatCoordinates: number[], offset: number, ends: number[], stride: number, opt_right?: boolean): boolean; /** * Determines if linear rings are oriented. By default, left-hand orientation * is tested (first ring must be clockwise, remaining rings counter-clockwise). * To test for right-hand orientation, use the `opt_right` argument. * * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {Array<Array<number>>} endss Array of array of end indexes. * @param {number} stride Stride. * @param {boolean=} opt_right Test for right-hand orientation * (counter-clockwise exterior ring and clockwise interior rings). * @return {boolean} Rings are correctly oriented. */ export function linearRingssAreOriented(flatCoordinates: number[], offset: number, endss: number[][], stride: number, opt_right?: boolean): boolean; /** * Orient coordinates in a flat array of linear rings. By default, rings * are oriented following the left-hand rule (clockwise for exterior and * counter-clockwise for interior rings). To orient according to the * right-hand rule, use the `opt_right` argument. * * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {Array<number>} ends Ends. * @param {number} stride Stride. * @param {boolean=} opt_right Follow the right-hand rule for orientation. * @return {number} End. */ export function orientLinearRings(flatCoordinates: number[], offset: number, ends: number[], stride: number, opt_right?: boolean): number; /** * Orient coordinates in a flat array of linear rings. By default, rings * are oriented following the left-hand rule (clockwise for exterior and * counter-clockwise for interior rings). To orient according to the * right-hand rule, use the `opt_right` argument. * * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {Array<Array<number>>} endss Array of array of end indexes. * @param {number} stride Stride. * @param {boolean=} opt_right Follow the right-hand rule for orientation. * @return {number} End. */ export function orientLinearRingsArray(flatCoordinates: number[], offset: number, endss: number[][], stride: number, opt_right?: boolean): number; //# sourceMappingURL=orient.d.ts.map