Modifier and Type | Method and Description |
---|---|
void |
calculateLength() |
void |
calculateScaledLength() |
boolean |
contains(float x,
float y)
Returns whether a point with the given coordinates is contained within the shape.
|
boolean |
contains(Vector2 point)
Returns whether the given point is contained within the shape.
|
void |
dirty() |
float |
getLength()
Returns the euclidean length of the polyline without scaling
|
float |
getOriginX() |
float |
getOriginY() |
float |
getRotation() |
float |
getScaledLength()
Returns the euclidean length of the polyline
|
float |
getScaleX() |
float |
getScaleY() |
float[] |
getTransformedVertices()
Returns vertices scaled, rotated, and offset by the polygon position.
|
float[] |
getVertices()
Returns vertices without scaling or rotation and without being offset by the polyline position.
|
float |
getX() |
float |
getY() |
void |
rotate(float degrees) |
void |
scale(float amount) |
void |
setOrigin(float originX,
float originY) |
void |
setPosition(float x,
float y) |
void |
setRotation(float degrees) |
void |
setScale(float scaleX,
float scaleY) |
void |
setVertices(float[] vertices) |
void |
translate(float x,
float y) |
public float[] getVertices()
public float[] getTransformedVertices()
public float getLength()
public float getScaledLength()
public float getX()
public float getY()
public float getOriginX()
public float getOriginY()
public float getRotation()
public float getScaleX()
public float getScaleY()
public void setOrigin(float originX, float originY)
public void setPosition(float x, float y)
public void setVertices(float[] vertices)
public void setRotation(float degrees)
public void rotate(float degrees)
public void setScale(float scaleX, float scaleY)
public void scale(float amount)
public void calculateLength()
public void calculateScaledLength()
public void dirty()
public void translate(float x, float y)
public boolean contains(Vector2 point)
Shape2D
Copyright © 2018. All rights reserved.