Module org.dyn4j

Class SweepLineVertex

  • All Implemented Interfaces:
    java.lang.Comparable<SweepLineVertex>

    final class SweepLineVertex
    extends java.lang.Object
    implements java.lang.Comparable<SweepLineVertex>
    Represents a vertex on a polygon that stores information about the left and right edges and left and right vertices.
    Since:
    2.2.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Constructor Detail

      • SweepLineVertex

        public SweepLineVertex​(Vector2 point,
                               int index)
        Minimal constructor.
        Parameters:
        point - the vertex point
        index - the index in the original simple polygon
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isInteriorRight

        public boolean isInteriorRight()
        Returns true if the interior is to the right of this vertex.

        The left edge of this vertex is used to determine where the interior of the polygon is.

        Returns:
        boolean