1 | import { AABB } from '@antv/g';
|
2 | import { Vector2 } from './vector';
|
3 | type Min = Vector2;
|
4 | type Max = Vector2;
|
5 | export type Bounds = [Min, Max];
|
6 | export declare function parseAABB(min2: AABB): Bounds;
|
7 | /**
|
8 | * Whether the `point` in `bounds`.
|
9 | * @param point
|
10 | * @param bounds
|
11 | */
|
12 | export declare function isInBounds(point: Vector2, bounds: Bounds): boolean;
|
13 | /**
|
14 | * Whether `b1` is overflow from `b2`.
|
15 | * @param b1
|
16 | * @param b2
|
17 | */
|
18 | export declare function isOverflow(b1: Bounds, b2: Bounds): boolean;
|
19 | /**
|
20 | * Whether `b1` is overlap with `b2`.
|
21 | * @param b1
|
22 | * @param b2
|
23 | * @returns
|
24 | */
|
25 | export declare function isOverlap(b1: Bounds, b2: Bounds): boolean;
|
26 | export {};
|