math.geom3d.transform
Class AffineTransform3D

Package class diagram package AffineTransform3D
java.lang.Object
  extended by math.geom3d.transform.AffineTransform3D
All Implemented Interfaces:
Bijection3D, Transform3D

public class AffineTransform3D
extends 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()
          Creates a new affine transform3D set to identity
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
static AffineTransform3D createRotationOx(double theta)
           
static AffineTransform3D createRotationOy(double theta)
           
static AffineTransform3D createRotationOz(double theta)
           
static AffineTransform3D createTranslation(double x, double y, double z)
           
static AffineTransform3D createTranslation(Vector3D vec)
           
 boolean equals(Object obj)
          Compares two transforms.
 double[] getCoefficients()
          Returns the affine coefficients of the transform.
 AffineTransform3D getInverseTransform()
          Computes the inverse affine transform.
 boolean isIdentity()
           
 void preConcatenate(AffineTransform3D trans)
          Combine this transform with another AffineTransform.
 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)
 void transform(AffineTransform3D trans)
          Combine this transform with another AffineTransform.
 Shape3D transform(Shape3D shape)
          Deprecated. shapes are responsible of their transform (0.6.3)
 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
 

Field Detail

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
Constructor Detail

AffineTransform3D

public AffineTransform3D()
Creates a new affine transform3D set to identity


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)
Method Detail

createTranslation

public static final AffineTransform3D createTranslation(Vector3D vec)

createTranslation

public static final AffineTransform3D createTranslation(double x,
                                                        double y,
                                                        double z)

createRotationOx

public static final AffineTransform3D createRotationOx(double theta)

createRotationOy

public static final AffineTransform3D createRotationOy(double theta)

createRotationOz

public static final AffineTransform3D createRotationOz(double theta)

isIdentity

public boolean isIdentity()

getCoefficients

public double[] getCoefficients()
Returns the affine coefficients of the transform. Result is an array of 12 double.


getInverseTransform

public AffineTransform3D getInverseTransform()
Computes the inverse affine transform.

Specified by:
getInverseTransform in interface Bijection3D

setTransform

@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. AffineTransform3d is immutable (0.6.3)


setTransform

@Deprecated
public void setTransform(AffineTransform3D trans)
Deprecated. AffineTransform3d is immutable (0.6.3)


setToIdentity

@Deprecated
public void setToIdentity()
Deprecated. AffineTransform3d is immutable (0.6.3)


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

@Deprecated
public Shape3D transform(Shape3D shape)
Deprecated. shapes are responsible of their transform (0.6.3)


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(Object obj)
Compares two transforms. Returns true if all inner fields are equal up to the precision given by Shape3D.ACCURACY.

Overrides:
equals in class Object


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.