Class ZAffineTransformation
- java.lang.Object
-
- org.h2gis.functions.spatial.affine_transformations.ZAffineTransformation
-
- All Implemented Interfaces:
Cloneable,org.locationtech.jts.geom.CoordinateSequenceFilter
public class ZAffineTransformation extends Object implements Cloneable, org.locationtech.jts.geom.CoordinateSequenceFilter
Applies a 3D affine transformation to a geometry. That means a rotation, scale and translate in a single step.- Author:
- Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description ZAffineTransformation(double dx, double dy, double dz)Populate the matrix element of the linear transformation used to rotate, scale, translate or shear in 3D a geometry.ZAffineTransformation(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23)Constructs a new transformation whose matrix has the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(org.locationtech.jts.geom.CoordinateSequence seq, int i)booleanisDone()booleanisGeometryChanged()
-
-
-
Constructor Detail
-
ZAffineTransformation
public ZAffineTransformation(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23)Constructs a new transformation whose matrix has the specified values.- Parameters:
m00- the entry for the [0, 0] element in the transformation matrixm01- the entry for the [0, 1] element in the transformation matrixm02- the entry for the [0, 2] element in the transformation matrixm03- the entry for the [0, 3] element in the transformation matrixm10- the entry for the [1, 0] element in the transformation matrixm11- the entry for the [1, 1] element in the transformation matrixm12- the entry for the [1, 2] element in the transformation matrixm13- the entry for the [1, 3] element in the transformation matrixm20- the entry for the [2, 0] element in the transformation matrixm21- the entry for the [2, 1] element in the transformation matrixm22- the entry for the [2, 2] element in the transformation matrixm23- the entry for the [2, 3] element in the transformation matrix
-
ZAffineTransformation
public ZAffineTransformation(double dx, double dy, double dz)Populate the matrix element of the linear transformation used to rotate, scale, translate or shear in 3D a geometry.- Parameters:
dx-dy-dz-
-
-
Method Detail
-
filter
public void filter(org.locationtech.jts.geom.CoordinateSequence seq, int i)- Specified by:
filterin interfaceorg.locationtech.jts.geom.CoordinateSequenceFilter
-
isDone
public boolean isDone()
- Specified by:
isDonein interfaceorg.locationtech.jts.geom.CoordinateSequenceFilter
-
isGeometryChanged
public boolean isGeometryChanged()
- Specified by:
isGeometryChangedin interfaceorg.locationtech.jts.geom.CoordinateSequenceFilter
-
-