| Modifier and Type | Field and Description |
|---|---|
| private Rectangle | |
| private boolean | |
| private boolean | |
| private boolean | |
| private float | |
| private float[] | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float[] | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean | contains(Vector2 point)
Implements com. Returns whether the given point is contained within the shape. |
| public boolean | contains(float x, float y)
Implements com. Returns whether a point with the given coordinates is contained within the shape. |
| public void | |
| public Rectangle | Returns: this polyline's bounding boxRectangleReturns an axis-aligned bounding box of this polyline. |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float[] | |
| public float[] | getVertices()
Returns vertices without scaling or rotation and without being offset by the polyline position. |
| public float | |
| public float | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| bounds | back to summary |
|---|---|
| private Rectangle bounds | |
| calculateLength | back to summary |
|---|---|
| private boolean calculateLength | |
| calculateScaledLength | back to summary |
|---|---|
| private boolean calculateScaledLength | |
| dirty | back to summary |
|---|---|
| private boolean dirty | |
| length | back to summary |
|---|---|
| private float length | |
| localVertices | back to summary |
|---|---|
| private float[] localVertices | |
| originX | back to summary |
|---|---|
| private float originX | |
| originY | back to summary |
|---|---|
| private float originY | |
| rotation | back to summary |
|---|---|
| private float rotation | |
| scaledLength | back to summary |
|---|---|
| private float scaledLength | |
| scaleX | back to summary |
|---|---|
| private float scaleX | |
| scaleY | back to summary |
|---|---|
| private float scaleY | |
| worldVertices | back to summary |
|---|---|
| private float[] worldVertices | |
| x | back to summary |
|---|---|
| private float x | |
| y | back to summary |
|---|---|
| private float y | |
| Polyline | back to summary |
|---|---|
| public Polyline() | |
| Polyline | back to summary |
|---|---|
| public Polyline(float[] vertices) | |
| calculateLength | back to summary |
|---|---|
| public void calculateLength() | |
| calculateScaledLength | back to summary |
|---|---|
| public void calculateScaledLength() | |
| contains | back to summary |
|---|---|
| public boolean contains(Vector2 point) Implements com. Doc from com. Returns whether the given point is contained within the shape.
| |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y) Implements com. Doc from com. Returns whether a point with the given coordinates is contained within the shape.
| |
| dirty | back to summary |
|---|---|
| public void dirty() | |
| getBoundingRectangle | back to summary |
|---|---|
| public Rectangle getBoundingRectangle() Returns an axis-aligned bounding box of this polyline. Note the returned Rectangle is cached in this polyline, and will be reused if this Polyline is changed. | |
| getLength | back to summary |
|---|---|
| public float getLength() Returns the euclidean length of the polyline without scaling | |
| getOriginX | back to summary |
|---|---|
| public float getOriginX() | |
| getOriginY | back to summary |
|---|---|
| public float getOriginY() | |
| getRotation | back to summary |
|---|---|
| public float getRotation() | |
| getScaledLength | back to summary |
|---|---|
| public float getScaledLength() Returns the euclidean length of the polyline | |
| getScaleX | back to summary |
|---|---|
| public float getScaleX() | |
| getScaleY | back to summary |
|---|---|
| public float getScaleY() | |
| getTransformedVertices | back to summary |
|---|---|
| public float[] getTransformedVertices() Returns vertices scaled, rotated, and offset by the polygon position. | |
| getVertices | back to summary |
|---|---|
| public float[] getVertices() Returns vertices without scaling or rotation and without being offset by the polyline position. | |
| getX | back to summary |
|---|---|
| public float getX() | |
| getY | back to summary |
|---|---|
| public float getY() | |
| rotate | back to summary |
|---|---|
| public void rotate(float degrees) | |
| scale | back to summary |
|---|---|
| public void scale(float amount) | |
| setOrigin | back to summary |
|---|---|
| public void setOrigin(float originX, float originY) | |
| setPosition | back to summary |
|---|---|
| public void setPosition(float x, float y) | |
| setRotation | back to summary |
|---|---|
| public void setRotation(float degrees) | |
| setScale | back to summary |
|---|---|
| public void setScale(float scaleX, float scaleY) | |
| setVertices | back to summary |
|---|---|
| public void setVertices(float[] vertices) | |
| translate | back to summary |
|---|---|
| public void translate(float x, float y) | |