public class ConstraintVertex extends Vertex
| Constructor and Description |
|---|
ConstraintVertex(Coordinate
Creates a new constraint vertex
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getConstraint()
Gets the external constraint object
|
boolean |
isOnConstraint()
Tests whether this vertex lies on a constraint.
|
protected void |
merge(ConstraintVertex
Merges the constraint data in the vertex
other into this vertex.
|
void |
setConstraint(Object
Sets the external constraint information
|
void |
setOnConstraint(boolean isOnConstraint)
Sets whether this vertex lies on a constraint.
|
circleCenter, circumRadiusRatio, classify, equals, equals, getCoordinate, getX, getY, getZ, interpolateZ, interpolateZ, interpolateZValue, isCCW, isInCircle, leftOf, midPoint, rightOf, setZ, toStringpublic ConstraintVertex(Coordinatep)
p - the location of the vertex
public void setOnConstraint(boolean isOnConstraint)
isOnConstraint - true if this vertex lies on a constraint
public boolean isOnConstraint()
public void setConstraint(Objectconstraint)
constraint - an object which carries information about the constraint this vertex lies on
public ObjectgetConstraint()
protected void merge(ConstraintVertexother)
other - the constraint vertex to merge