Package org.locationtech.jts.triangulate
Class ConstraintVertex
java.lang.Object
org.locationtech.jts.triangulate.quadedge.Vertex
org.locationtech.jts.triangulate.ConstraintVertex
A vertex in a Constrained Delaunay Triangulation.
The vertex may or may not lie on a constraint.
If it does it may carry extra information about the original constraint.
- Author:
- Martin Davis
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the external constraint objectboolean
Tests whether this vertex lies on a constraint.void
setConstraint
(Object constraint) Sets the external constraint informationvoid
setOnConstraint
(boolean isOnConstraint) Sets whether this vertex lies on a constraint.Methods inherited from class org.locationtech.jts.triangulate.quadedge.Vertex
circleCenter, circumRadiusRatio, classify, equals, equals, getCoordinate, getX, getY, getZ, interpolateZ, interpolateZ, interpolateZValue, isCCW, isInCircle, leftOf, midPoint, rightOf, setZ, toString
-
Constructor Details
-
ConstraintVertex
Creates a new constraint vertex- Parameters:
p
- the location of the vertex
-
-
Method Details
-
setOnConstraint
public void setOnConstraint(boolean isOnConstraint) Sets whether this vertex lies on a constraint.- Parameters:
isOnConstraint
- true if this vertex lies on a constraint
-
isOnConstraint
public boolean isOnConstraint()Tests whether this vertex lies on a constraint.- Returns:
- true if the vertex lies on a constraint
-
setConstraint
Sets the external constraint information- Parameters:
constraint
- an object which carries information about the constraint this vertex lies on
-
getConstraint
Gets the external constraint object- Returns:
- the external constraint object
-