1234567891011121314151617 |
- import { SLine, SPoint, SRect } from "@persagy-web/draw/lib";
- import { MinDis } from "../types/MinDis";
- import { Point } from "../types/Point";
- import { PointToLine } from "../types/PointToLine";
- import { Outline } from "../types/Outline";
- export declare class SMathUtil {
- static pointDistance(x1: number, y1: number, x2: number, y2: number): number;
- static getMinDisPoint(p: SPoint, arr: Point[]): MinDis | null;
- static pointToLine(p: SPoint, l: SLine): PointToLine;
- static getMinDisLine(p: SPoint, arr: Point[]): PointToLine | null;
- static rectIntersection(rect1: SRect, rect2: SRect): boolean;
- static lineIntersection(line1: SLine, line2: SLine): SPoint | null | string;
- static transferToArray(SP: SPoint[]): number[][];
- static transferToSPoint(arr: number[][]): SPoint[];
- static getIntersectInArray(array: number[][][]): Outline[];
- static calculateArea(arr: SPoint[]): number;
- }
|