Modifier and Type | Field and Description |
---|---|
(package private) double[][] |
mtx |
static int |
X_AXIS |
static int |
Y_AXIS |
static int |
Z_AXIS |
Constructor and Description |
---|
GRotation() |
GRotation(int axis,
double angle) |
Modifier and Type | Method and Description |
---|---|
Position |
getRotatedPosition(Position p) |
Position |
getRotatedPosition(Position p,
Position pcenter) |
Vector |
getRotatedVector(Vector v) |
void |
rotateAbout(Movable mov,
Position pcenter) |
GRotation |
times(GRotation gr1) |
public static final int X_AXIS
public static final int Y_AXIS
public static final int Z_AXIS
double[][] mtx
public Vector getRotatedVector(Vector v)
getRotatedVector
in interface Rotation
public Position getRotatedPosition(Position p, Position pcenter)
getRotatedPosition
in interface Rotation
public void rotateAbout(Movable mov, Position pcenter)
rotateAbout
in interface Rotation
public Position getRotatedPosition(Position p)
getRotatedPosition
in interface Rotation
Copyright © 2013. All Rights Reserved.