public class AffineTransform extends java.lang.Object implements Transform
This class is from the JavaGeom project, which is licensed under LGPL v2.1.
Constructor and Description |
---|
AffineTransform()
Creates a new affine transform3D set to the identity.
|
AffineTransform(double[] coefs) |
AffineTransform(double xx,
double yx,
double zx,
double tx,
double xy,
double yy,
double zy,
double ty,
double xz,
double yz,
double zz,
double tz) |
Modifier and Type | Method and Description |
---|---|
Vector3 |
apply(Vector3 vector)
Returns the result of applying the function to the input.
|
double[] |
coefficients()
Returns the affine coefficients of the transform.
|
AffineTransform |
combine(AffineTransform other) |
Transform |
combine(Transform other)
Create a new
Transform that combines this transform with another. |
AffineTransform |
concatenate(AffineTransform that)
Returns the affine transform created by applying first the affine
transform given by
that , then this affine transform. |
AffineTransform |
inverse()
Computes the inverse affine transform.
|
boolean |
isHorizontalFlip()
Returns if this affine transform represents a horizontal flip.
|
boolean |
isIdentity()
Return whether this transform is an identity.
|
boolean |
isVerticalFlip()
Returns if this affine transform represents a vertical flip.
|
AffineTransform |
preConcatenate(AffineTransform that)
Return the affine transform created by applying first this affine
transform, then the affine transform given by
that . |
AffineTransform |
rotateX(double theta) |
AffineTransform |
rotateY(double theta) |
AffineTransform |
rotateZ(double theta) |
AffineTransform |
scale(double s) |
AffineTransform |
scale(double sx,
double sy,
double sz) |
AffineTransform |
scale(Vector3 vec) |
java.lang.String |
toString() |
AffineTransform |
translate(BlockVector3 vec) |
AffineTransform |
translate(double x,
double y,
double z) |
AffineTransform |
translate(Vector3 vec) |
public AffineTransform()
public AffineTransform(double[] coefs)
public AffineTransform(double xx, double yx, double zx, double tx, double xy, double yy, double zy, double ty, double xz, double yz, double zz, double tz)
public boolean isIdentity()
Transform
If it is not known, then false
must be returned.
isIdentity
in interface Transform
public double[] coefficients()
public AffineTransform inverse()
public AffineTransform concatenate(AffineTransform that)
that
, then this affine transform.that
- the transform to apply firstpublic AffineTransform preConcatenate(AffineTransform that)
that
.that
- the transform to apply in a second steppublic AffineTransform translate(Vector3 vec)
public AffineTransform translate(BlockVector3 vec)
public AffineTransform translate(double x, double y, double z)
public AffineTransform rotateX(double theta)
public AffineTransform rotateY(double theta)
public AffineTransform rotateZ(double theta)
public AffineTransform scale(double s)
public AffineTransform scale(double sx, double sy, double sz)
public AffineTransform scale(Vector3 vec)
public Vector3 apply(Vector3 vector)
Transform
public AffineTransform combine(AffineTransform other)
public Transform combine(Transform other)
Transform
Transform
that combines this transform with another.public boolean isHorizontalFlip()
public boolean isVerticalFlip()
public java.lang.String toString()
toString
in class java.lang.Object