@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
13 lines • 827 B
TypeScript
import type { FnU } from "@thi.ng/api";
import type { MatOpMV, ReadonlyMat } from "@thi.ng/matrices";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
import type { IShape2, IShape3, PathSegment, PathSegment2, TransformVertexFn } from "../api.js";
/** @internal */
export declare const __transformedPoints: (pts: ReadonlyVec[], mat: ReadonlyMat, op?: MatOpMV) => Vec<number>[];
/** @internal */
export declare const __transformedPointsWith: (pts: ReadonlyVec[], fn: TransformVertexFn, op?: MatOpMV) => Vec<number>[];
type SegmentShapeMap<T extends PathSegment> = T extends PathSegment2 ? IShape2 : IShape3;
/** @internal */
export declare const __segmentTransformer: <S extends PathSegment>(txGeo: FnU<SegmentShapeMap<S>>, txPoint: FnU<Vec>) => (segments: S[]) => S[];
export {};
//# sourceMappingURL=transform.d.ts.map