UNPKG

@aurigma/design-atoms-model

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

22 lines (21 loc) 755 B
import { Transform } from "./Transform"; import { IPoint } from "./IPoint"; export declare class PointF { x: number; y: number; constructor(x?: number, y?: number); rotate(angle: number): this; rotateAt(angle: number, center?: PointF): this; translate(x: number, y: number): this; scale(scaleX: number, scaleY: number): this; clone(): PointF; equals(pt: PointF, tolerance?: number): boolean; static isEqual(a: PointF, b: PointF, tolerance?: number): boolean; distance(pt: PointF): number; transform(transform: Transform, center: PointF): PointF; toString(): string; toIPoint(): IPoint; static fromIPoint(point: IPoint): PointF; round(): this; isOrigin(): boolean; }