SourceTermAnalysisSystem_vue/node_modules/@antv/x6-geometry/lib/util.d.ts
2026-05-15 10:22:44 +08:00

13 lines
610 B
TypeScript

import { Point } from './point';
import { Rectangle } from './rectangle';
export declare namespace GeometryUtil {
function round(num: number, precision?: number): number;
function random(): number;
function random(max: number): number;
function random(min: number, max: number): number;
function clamp(value: number, min: number, max: number): number;
function snapToGrid(value: number, gridSize: number): number;
function containsPoint(rect: Rectangle.RectangleLike, point: Point.PointLike): boolean;
function squaredLength(p1: Point.PointLike, p2: Point.PointLike): number;
}