Module org.dyn4j

Interface Wound

    • Method Detail

      • getVertexIterator

        Iterator<Vector2> getVertexIterator()
        Returns an iterator for the vertices.

        The iterator does not support the remove method and will return a new Vector2 in the next method.

        This method is safer than the getVertices() since its not possible to modify the array or its elements.

        Returns:
        Iterator<Vector2>
        Since:
        3.2.0
      • getNormalIterator

        Iterator<Vector2> getNormalIterator()
        Returns an iterator for the normals.

        The iterator does not support the remove method and will return a new Vector2 in the next method rather than the underlying value.

        This method is safer than the getNormals() since its not possible to modify the array or its elements.

        Returns:
        Iterator<Vector2>
        Since:
        3.2.0
      • getVertices

        Vector2[] getVertices()
        Returns the array of vertices in local coordinates.

        For performance, this array may be the internal storage array of the shape. Both the array elements and their properties should not be modified via this method.

        It's possible that this method will be deprecated and/or removed in later versions.

        Returns:
        Vector2[]
        See Also:
        getVertexIterator()
      • getNormals

        Vector2[] getNormals()
        Returns the array of edge normals in local coordinates.

        For performance, this array may be the internal storage array of the shape. Both the array elements and their properties should not be modified via this method.

        It's possible that this method will be deprecated and/or removed in later versions.

        Returns:
        Vector2[]
        See Also:
        getNormalIterator()