|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart3D.engine.Transformation3D
public class Transformation3D extends java.lang.Object
Transforms the coordinates according to the rotation and elevation
| Constructor and Description |
|---|
Transformation3D()
Constructs an instance of Transformation3D with neutral matrix. |
Transformation3D(double[][] matrix)
Constructs an instance of Transformation3D with already prepared matrix |
Transformation3D(double xScale,
double yScale,
double zScale,
double xShift,
double yShift,
double zShift,
double xRotation,
double yRotation,
double zRotation)
Constructs an instance of Transformation3D with some parameters specified. |
| Modifier and Type | Method and Description |
|---|---|
double |
getXRotation()
Retrieves rotation angle about x axis. |
double |
getXScale()
Retrieves scaling value along x axis. |
double |
getYRotation()
Retrieves rotation angle about y axis. |
double |
getYScale()
Retrieves scaling value along y axis. |
double |
getZRotation()
Retrieves rotation angle about z axis. |
double |
getZScale()
Retrieves scaling value along z axis. |
Point3D |
transform(Point3D vectorPoint,
double x,
double y,
double z)
Transforms the point according to transformation matrix |
Point3D |
transform(Point3D vectorPoint,
Point3D anchor)
Transforms the point according to transformation matrix |
void |
transformInplace(Point3D vectorPoint,
double x,
double y,
double z)
Transforms the point according to transformation matrix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Transformation3D()
public Transformation3D(double[][] matrix)
matrix - Prepared/filled matrix
public Transformation3D(double xScale,
double yScale,
double zScale,
double xShift,
double yShift,
double zShift,
double xRotation,
double yRotation,
double zRotation)
xScale - scaling along x axisyScale - scaling along y axiszScale - scaling along z axisxShift - a shift along x axisyShift - a shift along y axiszShift - a shift along z axisxRotation - rotation about x axis in degreesyRotation - rotation about y axis in degreeszRotation - rotation about z axis in degrees| Method Detail |
|---|
public double getXRotation()
public double getYRotation()
public double getZRotation()
public double getXScale()
public double getYScale()
public double getZScale()
public Point3D transform(Point3D vectorPoint,
double x,
double y,
double z)
vectorPoint - the point to transformx - x anchor pointy - y anchor pointz - z anchor point
public void transformInplace(Point3D vectorPoint,
double x,
double y,
double z)
vectorPoint - the point to transformx - x anchor pointy - y anchor pointz - z anchor point
public Point3D transform(Point3D vectorPoint,
Point3D anchor)
vectorPoint - the point to transformanchor - anchor point
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||