|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTransform
public class Transform
Represents a transformation of points, using an internal matrix.
Field Summary | |
---|---|
static Transform |
IDENTITY
Represents the identity transformation, in which points are transformed into themselves. |
Method Summary | |
---|---|
Transform |
append(Transform other)
Returns the concatenation of two transformations, where points are first transformed by the parameter transformation, and the result is then transformed by this transformation. |
static Transform |
create(double[] mat)
Creates a transform with the given values in the matrix containing all 16 values in row order. |
Transform |
prepend(Transform other)
Returns the concatenation of two transformations, where points are first transformed by this transformation, and the result is then transformed by the parameter transformation. |
static Transform |
rotateX(double theta)
Creates a transform representing rotating the given number of radians around the x-axis. |
static Transform |
rotateY(double theta)
Creates a transform representing rotating the given number of radians around the y-axis. |
static Transform |
rotateZ(double theta)
Creates a transform representing rotating the given number of radians around the z-axis. |
static Transform |
scale(double x,
double y,
double z)
Creates a transform representing scaling the x-, y-, and z-coordinates as specified. |
java.lang.String |
toString()
|
Point |
transform(Point p)
Returns the point resulting from transforming the given point according to this transformation. |
static Transform |
translate(double x,
double y,
double z)
Creates a transform representing the translation of coordinates by the given distances along the x-, y-, and z-axes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Transform IDENTITY
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public Transform append(Transform other)
public Transform prepend(Transform other)
public Point transform(Point p)
public static Transform create(double[] mat)
public static Transform translate(double x, double y, double z)
public static Transform scale(double x, double y, double z)
public static Transform rotateX(double theta)
public static Transform rotateY(double theta)
public static Transform rotateZ(double theta)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |