@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
20 lines • 531 B
TypeScript
import type { MultiFn2O } from "@thi.ng/defmulti";
import type { IShape } from "./api.js";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
/**
* Maps point `p` from world space to the local space of given shape.
*
* @remarks
* This is the reverse operation of {@link unmapPoint}.
*
* Currently only implemented for:
*
* - {@link AABB}
* - {@link Rect}
*
* @param shape
* @param p
* @param out
*/
export declare const mapPoint: MultiFn2O<IShape, ReadonlyVec, Vec, Vec>;
//# sourceMappingURL=map-point.d.ts.map