frame.akima
Version:
A package for Akima interpolation
25 lines • 818 B
TypeScript
export declare class Point {
private x;
private y;
private xOrigin;
private yOrigin;
constructor(x: number, y: number, origin?: Point);
get X(): number;
set X(value: number);
get Y(): number;
set Y(value: number);
get XY(): {
x: number;
y: number;
};
get Radius(): number;
/**
* Calculates the angle in radians between the line connecting this point to the given origin and the positive X-axis.
* The result is normalized to the range [0, 2π) and rounded to three decimal places.
*
* @param origin - The reference point from which the angle is measured.
* @returns The angle in radians, rounded to three decimal places, in the range [0, 2π).
*/
relAtan(origin: Point): number;
}
//# sourceMappingURL=Point.d.ts.map