phx-react
Version:
PHX REACT
15 lines (14 loc) • 479 B
TypeScript
export declare class Point {
private readonly _x;
private readonly _y;
constructor(x: number, y: number);
private get x();
private get y();
equals({ x, y }: Point): boolean;
calcDeltaXTo({ x }: Point): number;
calcDeltaYTo({ y }: Point): number;
calcHorizontalDistanceTo(point: Point): number;
calcVerticalDistance(point: Point): number;
calcDistanceTo(point: Point): number;
}
export declare function isPoint(x: unknown): x is Point;