/** * @module common/models */ /** * A 2d point in space. */ export declare class Point { /** * The X value of this point. */ x: number; /** * The Y value of this point. */ y: number; /** * Creates a new point at the origin or at the provided, x, y. * @param x An x value for this point. Defaults to 0. * @param y A y value for this point. Defaults to 0. */ constructor(x?: number, y?: number); /** * Returns the square distance between this point and the other point. * @param point The other point. */ squareDistanceTo(point: Point): number; /** * Returns the distance between this point and the other point. * @param point The other point. */ distanceTo(point: Point): number; /** * Returns a new `Point` which has the same x and y values. */ clone(): Point; }