Package org.tinfour.common
Class VertexAdjustment
- java.lang.Object
-
- org.tinfour.common.Vertex
-
- org.tinfour.common.VertexAdjustment
-
- All Implemented Interfaces:
ISamplePoint
public class VertexAdjustment extends Vertex
Provides a wrapper class used to represent the adjusted position of a vertex.While applications are free to use this class as needed, the core Tinfour operations only use it as a compromise solution for case where vertices are very close to constrained edges.
-
-
Field Summary
-
Fields inherited from class org.tinfour.common.Vertex
auxiliary, BIT_CONSTRAINT, BIT_REFINEMENT, BIT_SYNTHETIC, BIT_WITHHELD, reserved0, reserved1, status, x, y
-
-
Constructor Summary
Constructors Constructor Description VertexAdjustment(double x, double y, Vertex vertex)Construct an instance with the specified Cartesian coordinates while copying the attributes of the original vertex.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VertexgetVertex()Gets the original vertex that was used to produce this instance-
Methods inherited from class org.tinfour.common.Vertex
getAuxiliaryIndex, getDistance, getDistance, getDistanceSq, getDistanceSq, getIndex, getLabel, getStatus, getX, getY, getZ, isConstraintMember, isNull, isRefinementProduct, isSynthetic, isWithheld, setAuxiliaryIndex, setConstraintMember, setIndex, setRefinementProduct, setStatus, setSynthetic, setWithheld, toString
-
-
-
-
Constructor Detail
-
VertexAdjustment
public VertexAdjustment(double x, double y, Vertex vertex)Construct an instance with the specified Cartesian coordinates while copying the attributes of the original vertex.- Parameters:
x- the adjusted x coordinatey- the adjusted y coordinatevertex- the original vertex
-
-
Method Detail
-
getVertex
public Vertex getVertex()
Gets the original vertex that was used to produce this instance- Returns:
- a valid vertex
-
-