public class PolygonNodeTopology extends Object
| Constructor and Description |
|---|
PolygonNodeTopology() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compareAngle(Coordinate origin,
Coordinate p,
Coordinate q)
Compares the angles of two vectors
relative to the positive X-axis at their origin.
|
static boolean |
isCrossing(Coordinate nodePt,
Coordinate a0,
Coordinate a1,
Coordinate b0,
Coordinate b1)
Check if four segments at a node cross.
|
static boolean |
isInteriorSegment(Coordinate nodePt,
Coordinate a0,
Coordinate a1,
Coordinate b)
Tests whether an segment node-b lies in the interior or exterior
of a corner of a ring formed by the two segments a0-node-a1.
|
public static boolean isCrossing(Coordinate nodePt, Coordinate a0, Coordinate a1, Coordinate b0, Coordinate b1)
nodePt - the node locationa0 - the previous segment endpoint in a ringa1 - the next segment endpoint in a ringb0 - the previous segment endpoint in the other ringb1 - the next segment endpoint in the other ringpublic static boolean isInteriorSegment(Coordinate nodePt, Coordinate a0, Coordinate a1, Coordinate b)
nodePt - the node locationa0 - the first vertex of the cornera1 - the second vertex of the cornerb - the other vertex of the test segmentpublic static int compareAngle(Coordinate origin, Coordinate p, Coordinate q)
origin - the origin of the vectorsp - the endpoint of the vector Pq - the endpoint of the vector QCopyright © 2024. All rights reserved.