Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
22 lines
673 B
Plaintext
22 lines
673 B
Plaintext
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
export declare class Point {
|
|
private readonly _x;
|
|
private readonly _y;
|
|
constructor(x: number, y: number);
|
|
get x(): number;
|
|
get y(): number;
|
|
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;
|