import { NonConstructiable } from '../foundation'; import { Rect } from './rect'; import { Size } from './size'; export interface Point { readonly x: number; readonly y: number; } export declare class Point extends NonConstructiable { static clone(p: Point): Point; static fromXY(x: number, y: number): Point; static fromRect(rect: Rect): Point; static fromSize(size: Size): Point; static readonly zero: Point; static isZero(point: Point): boolean; static eq(lhs: Point, rhs: Point): boolean; static add(lhs: Point, rhs: Point): Point; /** * 三个 Point 累加 */ static add3(p1: Point, p2: Point, p3: Point): Point; static invert(p: Point): Point; }