import { Vector2 } from 'three'; import { DirectedSegment } from './Line'; export interface Polygon { vertices: Vector2[]; sides: DirectedSegment[]; } /** * Sort the coordinates so that it becomes the vertex of a simple polygon if connect. * @param vertices Unsorted Vertices Coordinates Of Simple Polygon */ export declare function sortVerticesOfSimplePolygon(vertices: Vector2[]): Vector2[]; /** * Returns true if the given the polygon overlaps the other polygon. * @param a Sorted polygon vertices * @param b Sorted polygon vertices */ export declare function intersectsPolygon(a: Vector2[], b: Vector2[]): boolean;