-
- All Superinterfaces:
DataContainer
,Rotatable
,Shape
,Transformable
,Translatable
public interface Wound extends Shape, Transformable, DataContainer
Represents a shape that is defined by vertices with line segment connections with counter-clockwise winding.- Since:
- 1.0.0
- Version:
- 3.2.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<Vector2>
getNormalIterator()
Returns an iterator for the normals.Vector2[]
getNormals()
Returns the array of edge normals in local coordinates.Iterator<Vector2>
getVertexIterator()
Returns an iterator for the vertices.Vector2[]
getVertices()
Returns the array of vertices in local coordinates.-
Methods inherited from interface DataContainer
getUserData, setUserData
-
Methods inherited from interface Shape
computeAABB, computeAABB, contains, contains, createAABB, createAABB, createMass, getCenter, getRadius, getRadius, project, project, rotateAboutCenter
-
Methods inherited from interface Translatable
translate, translate
-
-
-
-
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()
-
-