Module org.dyn4j

Class EarClippingVertex


  • final class EarClippingVertex
    extends java.lang.Object
    Node class for a vertex within a simple polygon for the EarClipping algorithm.
    Since:
    3.2.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean ear
      Whether this vertex is an ear vertex
      (package private) int index
      The index in the original simple polygon
      (package private) EarClippingVertex next
      The next vertex
      (package private) Vector2 point
      The vertex point
      (package private) EarClippingVertex prev
      The previous vertex
      (package private) boolean reflex
      Whether this vertex is a reflex vertex
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • point

        final Vector2 point
        The vertex point
      • ear

        boolean ear
        Whether this vertex is an ear vertex
      • reflex

        boolean reflex
        Whether this vertex is a reflex vertex
      • index

        int index
        The index in the original simple polygon
    • Constructor Detail

      • EarClippingVertex

        public EarClippingVertex​(Vector2 point)
        Minimal constructor.
        Parameters:
        point - the point for the vertex
    • Method Detail

      • toString

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