Construct an Edge by providing the following information.
The first endpoint of the edge
The second endpoint of the edge
Optionaloptions: EdgeCreationOptions = {}Additional options which describe the edge
The first endpoint of the edge.
The second endpoint of the edge.
The rectangular bounds of the edge. Used by the quadtree.
How this edge restricts darkness.
The direction of effect for the edge.
A string used to uniquely identify this edge, if any.
Record other edges which this one intersects with by level.
How this edge restricts light.
How this edge restricts movement.
The endpoint of the edge which is oriented towards the top-left.
The Document/PlaceableObject the edge belongs to, if any.
The endpoint of the edge which is oriented towards the bottom-right.
How this edge restricts sight.
How this edge restricts sound.
Specialized threshold data for this edge.
A PolygonVertex instance. Used as part of ClockwiseSweepPolygon computation.
A PolygonVertex instance. Used as part of ClockwiseSweepPolygon computation.
Test whether to apply a proximity threshold to this edge. If the proximity threshold is met, this edge excluded from perception calculations.
Sense type for the source
The origin or position of the source on the canvas
OptionalexternalRadius: number = 0The external radius of the source
True if the edge has a threshold greater than 0 for the source type, and the source type is within that distance.
Create a copy of the Edge which can be safely mutated.
Get an intersection point between this Edge and another.
Is this edge limited for a particular type?
Determine the orientation of this Edge with respect to a reference point.
Some reference point, relative to which orientation is determined
An orientation in CONST.EDGE_DIRECTIONS which indicates whether the Point is left, right, or collinear (both) with the Edge
Record the intersections between two edges.
Another edge to test and record
The ID of the Level the edges are in
Remove intersections of this edge with all other edges.
The ID of the Level the edges are in
StaticidentifyIdentify intersections between a provided iterable of edges.
An iterable of edges
The ID of the Level the edges are in
A data structure used to represent potential edges used by the ClockwiseSweepPolygon. Edges are not polygon-specific, meaning they can be reused across many polygon instances.