UNPKG

@flashport/flashport

Version:

FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library

19 lines (18 loc) 666 B
export declare class Point extends Object { x: number; y: number; constructor(x?: number, y?: number); static interpolate: (pt1: Point, pt2: Point, f: number) => Point; static distance: (pt1: Point, pt2: Point) => number; static polar: (len: number, angle: number) => Point; get length(): number; clone: () => Point; offset: (dx: number, dy: number) => void; equals: (toCompare: Point) => boolean; subtract: (v: Point) => Point; add: (v: Point) => Point; normalize: (thickness: number) => void; toString: () => string; copyFrom: (sourcePoint: Point) => void; setTo: (xa: number, ya: number) => void; }