Modifier and Type | Method and Description |
---|---|
void |
calculateLength() |
void |
calculateScaledLength() |
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 |
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 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)
Copyright © 2015. All rights reserved.