@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
24 lines • 798 B
TypeScript
import type { MultiFn2O } from "@thi.ng/defmulti";
import type { IShape } from "./api.js";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
/**
* Projects given point `uv` (normalized coords) into the target space defined
* by `shape` and writes result to `out` (or returns new vector).
*
* @remarks
* See {@link mapPoint} for reverse operation. Both functions together can be
* used to warp points from one shape into another.
*
* Currently only implemented for these shape types:
*
* - {@link AABB}
* - {@link Quad}
* - {@link Quad3}
* - {@link Rect}
*
* @param shape - shape to operate on
* @param uv - point to map in UV space
* @param out - result
*/
export declare const unmapPoint: MultiFn2O<IShape, ReadonlyVec, Vec, Vec>;
//# sourceMappingURL=unmap-point.d.ts.map