Module org.dyn4j

Class Feature

  • Direct Known Subclasses:
    EdgeFeature, PointFeature

    public abstract class Feature
    extends java.lang.Object
    Represents an indexed feature of a Shape.
    Since:
    1.0.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int index
      The index of the edge on the shape
      static int NOT_INDEXED
      Index for non-indexed vertices
    • Constructor Summary

      Constructors 
      Constructor Description
      Feature​(int index)
      Minimal constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIndex()
      Returns the edge index.
      • Methods inherited from class java.lang.Object

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

      • NOT_INDEXED

        public static final int NOT_INDEXED
        Index for non-indexed vertices
        See Also:
        Constant Field Values
      • index

        final int index
        The index of the edge on the shape
    • Constructor Detail

      • Feature

        public Feature​(int index)
        Minimal constructor.
        Parameters:
        index - the index of the feature in the Shape
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the edge index.

        If the index == NOT_INDEXED then this feature represents a curved shape feature.

        Returns:
        int