@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
25 lines • 631 B
TypeScript
import type { Maybe } from "@thi.ng/api";
import type { MultiFn2 } from "@thi.ng/defmulti";
import type { IShape } from "./api.js";
import type { Vec } from "@thi.ng/vectors";
/**
* Computes tangent on shape/boundary at normalized parametric position `t`.
*
* @remarks
* Currently implemented for:
*
* - {@link Circle}
* - {@link Cubic}
* - {@link Line}
* - {@link Polygon}
* - {@link Polyline}
* - {@link Quad}
* - {@link Quadratic}
* - {@link Rect}
* - {@link Triangle}
*
* @param shape
* @param t
*/
export declare const tangentAt: MultiFn2<IShape, number, Maybe<Vec>>;
//# sourceMappingURL=tangent-at.d.ts.map