Class 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.

    • 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 coordinate
        y - the adjusted y coordinate
        vertex - the original vertex
    • Method Detail

      • getVertex

        public Vertex getVertex()
        Gets the original vertex that was used to produce this instance
        Returns:
        a valid vertex