package.geom.flat.transform.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ol Show documentation
Show all versions of ol Show documentation
OpenLayers mapping library
The newest version!
/**
* @module ol/geom/flat/transform
*/
/**
* @param {Array} flatCoordinates Flat coordinates.
* @param {number} offset Offset.
* @param {number} end End.
* @param {number} stride Stride.
* @param {import("../../transform.js").Transform} transform Transform.
* @param {Array} [dest] Destination.
* @param {number} [destinationStride] Stride of destination coordinates; if unspecified, assumed to be 2.
* @return {Array} Transformed coordinates.
*/
export function transform2D(flatCoordinates: Array, offset: number, end: number, stride: number, transform: import("../../transform.js").Transform, dest?: number[] | undefined, destinationStride?: number | undefined): Array;
/**
* @param {Array} flatCoordinates Flat coordinates.
* @param {number} offset Offset.
* @param {number} end End.
* @param {number} stride Stride.
* @param {number} angle Angle.
* @param {Array} anchor Rotation anchor point.
* @param {Array} [dest] Destination.
* @return {Array} Transformed coordinates.
*/
export function rotate(flatCoordinates: Array, offset: number, end: number, stride: number, angle: number, anchor: Array, dest?: number[] | undefined): Array;
/**
* Scale the coordinates.
* @param {Array} flatCoordinates Flat coordinates.
* @param {number} offset Offset.
* @param {number} end End.
* @param {number} stride Stride.
* @param {number} sx Scale factor in the x-direction.
* @param {number} sy Scale factor in the y-direction.
* @param {Array} anchor Scale anchor point.
* @param {Array} [dest] Destination.
* @return {Array} Transformed coordinates.
*/
export function scale(flatCoordinates: Array, offset: number, end: number, stride: number, sx: number, sy: number, anchor: Array, dest?: number[] | undefined): Array;
/**
* @param {Array} flatCoordinates Flat coordinates.
* @param {number} offset Offset.
* @param {number} end End.
* @param {number} stride Stride.
* @param {number} deltaX Delta X.
* @param {number} deltaY Delta Y.
* @param {Array} [dest] Destination.
* @return {Array} Transformed coordinates.
*/
export function translate(flatCoordinates: Array, offset: number, end: number, stride: number, deltaX: number, deltaY: number, dest?: number[] | undefined): Array;
//# sourceMappingURL=transform.d.ts.map