public class AffineTransform3D extends Object implements Bijection3D
| Modifier and Type | Field and Description |
|---|---|
protected javax.vecmath.Matrix4d |
matrix
Transformation matrix
Last column is translation.
|
| Modifier | Constructor and Description |
|---|---|
|
AffineTransform3D()
Creates a new affine transform3D set to identity
|
|
AffineTransform3D(double[] coeficients) |
|
AffineTransform3D(double xx,
double yx,
double zx,
double tx,
double xy,
double yy,
double zy,
double ty,
double xz,
double yz,
double zz,
double tz) |
protected |
AffineTransform3D(javax.vecmath.Matrix4d matrix) |
| Modifier and Type | Method and Description |
|---|---|
AffineTransform3D |
concatenate(AffineTransform3D second)
Concatenate transformations
|
static AffineTransform3D |
createRotationOx(double theta) |
static AffineTransform3D |
createRotationOy(double theta) |
static AffineTransform3D |
createRotationOz(double theta) |
static AffineTransform3D |
createScaling(double s) |
static AffineTransform3D |
createScaling(double sx,
double sy,
double sz) |
static AffineTransform3D |
createScaling(Vector3D scalingVector) |
static AffineTransform3D |
createTranslation(double x,
double y,
double z) |
static AffineTransform3D |
createTranslation(Vector3D vec) |
boolean |
equals(Object other)
Compares two transforms.
|
AffineTransform3D |
getInverseTransform()
Computes the inverse affine transform.
|
javax.vecmath.Matrix4d |
getMatrix()
Get matrix representing the transformation
|
boolean |
isIdentity() |
void |
setToIdentity()
Deprecated.
AffineTransform3d is immutable (0.6.3)
|
void |
setTransform(AffineTransform3D trans)
Deprecated.
AffineTransform3d is immutable (0.6.3)
|
void |
setTransform(double n00,
double n01,
double n02,
double n03,
double n10,
double n11,
double n12,
double n13,
double n20,
double n21,
double n22,
double n23)
Deprecated.
AffineTransform3d is immutable (0.6.3)
|
Shape3D |
transform(Shape3D shape)
Deprecated.
shapes are responsible of their transform (0.6.3)
|
Point3D |
transformPoint(Point3D point) |
ArrayList<Point3D> |
transformPoints(Collection<Point3D> points) |
Vector3D |
transformVector(Vector3D vector) |
protected javax.vecmath.Matrix4d matrix
public AffineTransform3D()
public AffineTransform3D(double[] coeficients)
public AffineTransform3D(double xx,
double yx,
double zx,
double tx,
double xy,
double yy,
double zy,
double ty,
double xz,
double yz,
double zz,
double tz)
protected AffineTransform3D(javax.vecmath.Matrix4d matrix)
public static AffineTransform3D createTranslation(Vector3D vec)
public static AffineTransform3D createTranslation(double x, double y, double z)
public static AffineTransform3D createRotationOx(double theta)
public static AffineTransform3D createRotationOy(double theta)
public static AffineTransform3D createRotationOz(double theta)
public static AffineTransform3D createScaling(double s)
public static AffineTransform3D createScaling(Vector3D scalingVector)
public static AffineTransform3D createScaling(double sx, double sy, double sz)
public boolean isIdentity()
public javax.vecmath.Matrix4d getMatrix()
public AffineTransform3D getInverseTransform()
getInverseTransform in interface Bijection3D@Deprecated public void setTransform(double n00, double n01, double n02, double n03, double n10, double n11, double n12, double n13, double n20, double n21, double n22, double n23)
@Deprecated public void setTransform(AffineTransform3D trans)
@Deprecated public void setToIdentity()
public AffineTransform3D concatenate(AffineTransform3D second)
second - Transformation which is intended to be applied second in the resulting concatenated transformation.@Deprecated public Shape3D transform(Shape3D shape)
public ArrayList<Point3D> transformPoints(Collection<Point3D> points)
transformPoints in interface Transform3Dpublic Point3D transformPoint(Point3D point)
transformPoint in interface Transform3DCopyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.