UNPKG

rpg-dialogue-js

Version:

A simple roleplay game dialogue engine and editor.

21 lines (20 loc) 650 B
/** * @requires Line * @requires Vertex * * @author Ikaros Kappler * @date 2020-12-04 * @modified 2020-12-09 Ported from vanilla JS to Typescript. */ import { Vertex } from "../../Vertex"; import { XYCoords } from "../../interfaces"; /** * Collect all self-intersection points of the given polygon. * * If the given polygon (vertices) is not self intersecting then the returned array is empty. * * @name findPolygonSelfIntersections * @param {Array<Vertex>} vertices - The vertices that form the polygon. * @return Array<Vertex> */ export declare const findPolygonSelfIntersections: (vertices: Array<XYCoords>) => Array<Vertex>;