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.

16 lines (15 loc) 1.16 kB
import { RectangleF } from "./RectangleF"; import { PointF } from "./PointF"; export declare const getOrientedSquare: (p1: PointF, p2: PointF, p3: PointF) => number; export declare const getBounds: (points: PointF[]) => RectangleF; export declare const getTriangleAngle: (p1: PointF, p2: PointF, p3: PointF) => number; export declare const normalizeAngle: (angle: number) => number; export declare const getScalarProduct: (v1: PointF, v2: PointF) => number; export declare const getSquareDistanceToSegment: (p: PointF, p1: PointF, p2: PointF) => number; export declare const getSquareDistanceToPoint: (p1: PointF, p2: PointF) => number; export declare const getLineWidth: (p1: PointF, p2: PointF, width: any, scaleX: any, scaleY: any) => number; export declare const ConvertDegreeToRadian: (angle: any) => number; export declare const ConvertRadianToDegree: (angle: any) => number; export declare const Clamp: (min: number, val: number, max: number) => number; export declare const EqualsOfFloatNumbers: (f1: number, f2: number, tolerance?: number) => boolean; export declare const CompareRectangels: (rects0: any, rects1: any) => boolean;