math.geom3d
Class AffineTransform3D
java.lang.Object
math.geom3d.AffineTransform3D
- All Implemented Interfaces:
- Bijection3D, Transform3D
public class AffineTransform3D
- extends java.lang.Object
- implements Bijection3D
- Author:
- dlegland
|
Field Summary |
protected double |
m00
|
protected double |
m01
|
protected double |
m02
|
protected double |
m03
|
protected double |
m10
|
protected double |
m11
|
protected double |
m12
|
protected double |
m13
|
protected double |
m20
|
protected double |
m21
|
protected double |
m22
|
protected double |
m23
|
|
Constructor Summary |
AffineTransform3D()
Main constructor |
AffineTransform3D(double[] coefs)
|
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)
|
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
double[] |
getCoefficients()
return coefficients of the transform. |
Bijection3D |
getInverseTransform()
|
boolean |
isIdentity()
|
void |
preConcatenate(AffineTransform3D trans)
Combine this transform with another AffineTransform. |
void |
setToIdentity()
|
void |
setTransform(AffineTransform3D trans)
|
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)
|
void |
transform(AffineTransform3D trans)
Combine this transform with another AffineTransform. |
Shape3D |
transform(Shape3D shape)
|
Point3D |
transformPoint(Point3D src,
Point3D dst)
|
Point3D[] |
transformPoints(Point3D[] src,
Point3D[] dst)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m00
protected double m00
m01
protected double m01
m02
protected double m02
m03
protected double m03
m10
protected double m10
m11
protected double m11
m12
protected double m12
m13
protected double m13
m20
protected double m20
m21
protected double m21
m22
protected double m22
m23
protected double m23
AffineTransform3D
public AffineTransform3D()
- Main constructor
AffineTransform3D
public AffineTransform3D(double[] coefs)
AffineTransform3D
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)
isIdentity
public boolean isIdentity()
getCoefficients
public double[] getCoefficients()
- return coefficients of the transform. Result is an array of 6 double.
getInverseTransform
public Bijection3D getInverseTransform()
- Specified by:
getInverseTransform in interface Bijection3D
setTransform
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)
setTransform
public void setTransform(AffineTransform3D trans)
setToIdentity
public void setToIdentity()
transform
public void transform(AffineTransform3D trans)
- Combine this transform with another AffineTransform.
preConcatenate
public void preConcatenate(AffineTransform3D trans)
- Combine this transform with another AffineTransform.
transform
public Shape3D transform(Shape3D shape)
transformPoints
public Point3D[] transformPoints(Point3D[] src,
Point3D[] dst)
- Specified by:
transformPoints in interface Transform3D
transformPoint
public Point3D transformPoint(Point3D src,
Point3D dst)
- Specified by:
transformPoint in interface Transform3D
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object