Module org.dyn4j

Class PointFeature

    • Field Detail

      • point

        final Vector2 point
        The vertex or point
    • Constructor Detail

      • PointFeature

        public PointFeature​(Vector2 point)
        Optional constructor.

        Assumes the given point is not indexed.

        Parameters:
        point - the vertex point
      • PointFeature

        public PointFeature​(Vector2 point,
                            int index)
        Full constructor.
        Parameters:
        point - the vertex point
        index - the index
    • Method Detail

      • toString

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

        public Vector2 getPoint()
        Returns the point.
        Returns:
        Vector2