Class Transform3D
java.lang.Object
org.gvsig.fmap.geom.jts.transform.Transform3D
- All Implemented Interfaces:
org.gvsig.fmap.geom.transform.Transform
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleThe constant used for testing results.protected doublecoefficients for x coordinate.protected doublecoefficients for x coordinate.protected doublecoefficients for x coordinate.protected doublecoefficients for x coordinate.protected doublecoefficients for y coordinate.protected doublecoefficients for y coordinate.protected doublecoefficients for y coordinate.protected doublecoefficients for y coordinate.protected doublecoefficients for z coordinate.protected doublecoefficients for z coordinate.protected doublecoefficients for z coordinate.protected doublecoefficients for z coordinate. -
Constructor Summary
ConstructorsConstructorDescriptionTransform3D(double[] coefs) Transform3D(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
Modifier and TypeMethodDescriptiondouble[]Returns the affine coefficients of the transform.org.gvsig.fmap.geom.transform.Transformconcatenate(org.gvsig.fmap.geom.transform.Transform other) Returns the affine transform created by applying first the affine transform given bythat, then this affine transform.booleanCompares two transforms.inverse()Computes the inverse affine transform.booleanpreConcatenate(org.gvsig.fmap.geom.transform.Transform other) Return the affine transform created by applying first this affine transform, then the affine transform given bythat.org.gvsig.fmap.geom.primitive.Pointtransform(org.gvsig.fmap.geom.primitive.Point src) Transforms the input point.org.gvsig.fmap.geom.primitive.Point[]transform(org.gvsig.fmap.geom.primitive.Point[] src, org.gvsig.fmap.geom.primitive.Point[] dst) Transforms the input point array, stores the result in the pre-allocated array, and returns a pointer to the result array.
-
Field Details
-
ACCURACY
public static final double ACCURACYThe constant used for testing results.- See Also:
-
m00
protected double m00coefficients for x coordinate. -
m01
protected double m01coefficients for x coordinate. -
m02
protected double m02coefficients for x coordinate. -
m03
protected double m03coefficients for x coordinate. -
m10
protected double m10coefficients for y coordinate. -
m11
protected double m11coefficients for y coordinate. -
m12
protected double m12coefficients for y coordinate. -
m13
protected double m13coefficients for y coordinate. -
m20
protected double m20coefficients for z coordinate. -
m21
protected double m21coefficients for z coordinate. -
m22
protected double m22coefficients for z coordinate. -
m23
protected double m23coefficients for z coordinate.
-
-
Constructor Details
-
Transform3D
public Transform3D() -
Transform3D
public Transform3D(double[] coefs) -
Transform3D
public Transform3D(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 Details
-
isIdentity
public boolean isIdentity()- Specified by:
isIdentityin interfaceorg.gvsig.fmap.geom.transform.Transform
-
coefficients
public double[] coefficients()Returns the affine coefficients of the transform. Result is an array of 12 double. -
inverse
Computes the inverse affine transform.- Specified by:
inversein interfaceorg.gvsig.fmap.geom.transform.Transform
-
concatenate
public org.gvsig.fmap.geom.transform.Transform concatenate(org.gvsig.fmap.geom.transform.Transform other) Returns the affine transform created by applying first the affine transform given bythat, then this affine transform.- Specified by:
concatenatein interfaceorg.gvsig.fmap.geom.transform.Transform- Parameters:
that- the transform to apply first- Returns:
- the composition this * that
-
preConcatenate
Return the affine transform created by applying first this affine transform, then the affine transform given bythat.- Specified by:
preConcatenatein interfaceorg.gvsig.fmap.geom.transform.Transform- Parameters:
other- the transform to apply in a second step- Returns:
- the composition that * this
-
transform
public org.gvsig.fmap.geom.primitive.Point[] transform(org.gvsig.fmap.geom.primitive.Point[] src, org.gvsig.fmap.geom.primitive.Point[] dst) Transforms the input point array, stores the result in the pre-allocated array, and returns a pointer to the result array. A new array is created ifresis null or has length smaller than of src.- Specified by:
transformin interfaceorg.gvsig.fmap.geom.transform.Transform- Parameters:
src-dst-- Returns:
-
transform
public org.gvsig.fmap.geom.primitive.Point transform(org.gvsig.fmap.geom.primitive.Point src) Transforms the input point.- Specified by:
transformin interfaceorg.gvsig.fmap.geom.transform.Transform- Parameters:
src-- Returns:
-
equals
Compares two transforms. Returns true if all inner fields are equal up to the precision given by Shape3D.ACCURACY.
-