public class ConstraintVertex extends Vertex
| Constructor and Description |
|---|
ConstraintVertex(Point p)
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 other)
Merges the constraint data in the vertex other into this vertex.
|
void |
setConstraint(Object constraint)
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, toStringpublic ConstraintVertex(Point p)
p - the location of the vertexpublic Object getConstraint()
public boolean isOnConstraint()
protected void merge(ConstraintVertex other)
other - the constraint vertex to mergepublic void setConstraint(Object constraint)
constraint - an object which carries information about the constraint this vertex lies onpublic void setOnConstraint(boolean isOnConstraint)
isOnConstraint - true if this vertex lies on a constraintCopyright © 2015 Revolution Systems Inc.. All rights reserved.