|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.common.math.Transform
2D Transformation Wrapper Module
Matrix,
Vector2D| Field Summary | |
static int |
X_AXIS
|
static int |
Y_AXIS
|
| Constructor Summary | |
Transform()
|
|
| Method Summary | |
void |
addFlip(Vector2D flipCenter,
boolean xAxis,
boolean yAxis)
Adds flipping to the Transform stack |
void |
addMovement(Vector2D movementVector)
Adds movement to the Transform stack |
void |
addRotation(Vector2D rotationCenter,
double theta)
Adds rotation to the Transform stack |
void |
addScale(double scaleFactor)
Adds scaling to the Transform stack |
void |
flipX(double flipAxisX,
Vector2D[] vertexes)
Executes a simple X-flip on the passed vertexes |
void |
flipXY(Vector2D flipCenter,
Vector2D[] vertexes)
Executes a simple X- and Y-flip on the passed vertexes |
void |
flipY(double flipAxisY,
Vector2D[] vertexes)
Executes a simple Y-flip on the passed vertexes |
void |
move(Vector2D movementVector,
Vector2D vector)
Executes a simple rotation on the passed Vector |
void |
move(Vector2D movementVector,
Vector2D[] vertexes)
Executes a simple movememt on the passed vertexes |
void |
rotate(Vector2D rotationCenter,
double theta,
Vector2D vector)
Executes a simple rotation on the passed Vector |
void |
rotate(Vector2D rotationCenter,
double theta,
Vector2D[] vertexes)
Executes a simple rotation on the passed vertexes |
void |
scale(double scaleFactor,
Vector2D[] vertexes)
Executes a simple scaling on the passed vertexes |
void |
transform(Vector2D vector)
Executes the transformation on the passed Vector and resets the Transform Object. |
void |
transform(Vector2D[] vertexes)
Executes the transformation on the passed vertexes and resets the Transform Object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int X_AXIS
public static final int Y_AXIS
| Constructor Detail |
public Transform()
| Method Detail |
public void addMovement(Vector2D movementVector)
movementVector -
public void addRotation(Vector2D rotationCenter,
double theta)
rotationCenter - theta - public void addScale(double scaleFactor)
scaleFactor -
public void addFlip(Vector2D flipCenter,
boolean xAxis,
boolean yAxis)
flipCenter - xAxis - yAxis - public void transform(Vector2D vector)
vector - Vector to transformpublic void transform(Vector2D[] vertexes)
vertexes - Vertexes to transform
public void rotate(Vector2D rotationCenter,
double theta,
Vector2D[] vertexes)
rotationCenter - theta - angle in radiansvertexes - vertexes to rotate
public void rotate(Vector2D rotationCenter,
double theta,
Vector2D vector)
rotationCenter - theta - angle in radiansvector - Vector to rotate
public void move(Vector2D movementVector,
Vector2D[] vertexes)
movementVector - Bewegung, die ausgeführt werden sollvertexes - vertexes to move
public void move(Vector2D movementVector,
Vector2D vector)
movementVector - movementvector - Vector to move
public void scale(double scaleFactor,
Vector2D[] vertexes)
scaleFactor - vertexes - vertexes to scale
public void flipX(double flipAxisX,
Vector2D[] vertexes)
flipAxisX - X-axis for flipvertexes - vertexes to flip
public void flipY(double flipAxisY,
Vector2D[] vertexes)
flipAxisY - Y-axis for flipvertexes - vertexes to flip
public void flipXY(Vector2D flipCenter,
Vector2D[] vertexes)
flipCenter - center for flipvertexes - vertexes to flip
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||