@thi.ng/geom-arc
Version:
2D circular / elliptic arc operations
20 lines • 869 B
TypeScript
import { type SamplingOpts } from "@thi.ng/geom-resample/api";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
export declare const sample: (pos: ReadonlyVec, r: ReadonlyVec, axis: number, start: number, end: number, opts?: number | Partial<SamplingOpts>) => Vec[];
/**
* Computes `steps` points (default: 8) on the circular arc between
* points `a` and `b` with `origin` and radius `r`. Points are added to
* optional `out` (or a new array). If `addLast` is falst (default:
* true), point `b` will NOT be added.
*
* @param origin -
* @param r -
* @param a -
* @param b -
* @param out -
* @param steps -
* @param outwards -
* @param addLast -
*/
export declare const sampleCircular: (origin: Vec, r: number, a: Vec, b: Vec, out?: Vec[], steps?: number, outwards?: boolean, addLast?: boolean) => Vec<number>[];
//# sourceMappingURL=sample.d.ts.map