@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
23 lines • 926 B
TypeScript
import type { Vec } from "@thi.ng/vectors";
import type { Attribs, HiccupPathSegment, IHiccupPathSegment, IHiccupShape2 } from "../api.js";
export declare class Arc implements IHiccupShape2<Arc>, IHiccupPathSegment {
pos: Vec;
r: Vec;
axis: number;
start: number;
end: number;
xl: boolean;
cw: boolean;
attribs?: Attribs | undefined;
readonly type = "arc";
readonly dim = 2;
constructor(pos: Vec, r: Vec, axis: number, start: number, end: number, xl?: boolean, cw?: boolean, attribs?: Attribs | undefined);
copy(): Arc;
withAttribs(attribs: Attribs): Arc;
equiv(o: any): boolean;
pointAt(t: number, out?: Vec): Vec<number>;
pointAtTheta(theta: number, out?: Vec): Vec<number>;
toHiccup(): (string | Attribs | (HiccupPathSegment | (string | Vec<number>)[])[] | undefined)[];
toHiccupPathSegments(): HiccupPathSegment[];
}
//# sourceMappingURL=arc.d.ts.map