Uses of Class
org.locationtech.jts.geom.util.AffineTransformation
Packages that use AffineTransformation
Package
Description
Provides classes that parse and modify Geometry objects.
-
Uses of AffineTransformation in org.locationtech.jts.geom.util
Methods in org.locationtech.jts.geom.util that return AffineTransformationModifier and TypeMethodDescriptionAffineTransformation.compose
(AffineTransformation trans) Updates this transformation to be the composition of this transformation with the givenAffineTransformation
.AffineTransformation.composeBefore
(AffineTransformation trans) Updates this transformation to be the composition of a givenAffineTransformation
with this transformation.static AffineTransformation
AffineTransformationFactory.createFromBaseLines
(Coordinate src0, Coordinate src1, Coordinate dest0, Coordinate dest1) Creates an AffineTransformation defined by a mapping between two baselines.static AffineTransformation
AffineTransformationFactory.createFromControlVectors
(Coordinate[] src, Coordinate[] dest) Creates an AffineTransformation defined by a set of control vectors.static AffineTransformation
AffineTransformationFactory.createFromControlVectors
(Coordinate src0, Coordinate dest0) Creates an AffineTransformation defined by a single control vector.static AffineTransformation
AffineTransformationFactory.createFromControlVectors
(Coordinate src0, Coordinate src1, Coordinate dest0, Coordinate dest1) Creates an AffineTransformation defined by a pair of control vectors.static AffineTransformation
AffineTransformationFactory.createFromControlVectors
(Coordinate src0, Coordinate src1, Coordinate src2, Coordinate dest0, Coordinate dest1, Coordinate dest2) Creates a transformation from a set of three control vectors.AffineTransformation.getInverse()
Computes the inverse of this transformation, if one exists.AffineTransformationBuilder.getTransformation()
Computes theAffineTransformation
determined by the control point mappings, ornull
if the control vectors do not determine a well-defined transformation.AffineTransformation.reflect
(double x, double y) Updates the value of this transformation to that of a reflection transformation composed with the current value.AffineTransformation.reflect
(double x0, double y0, double x1, double y1) Updates the value of this transformation to that of a reflection transformation composed with the current value.static AffineTransformation
AffineTransformation.reflectionInstance
(double x, double y) Creates a transformation for a reflection about the line (0,0) - (x,y).static AffineTransformation
AffineTransformation.reflectionInstance
(double x0, double y0, double x1, double y1) Creates a transformation for a reflection about the line (x0,y0) - (x1,y1).AffineTransformation.rotate
(double theta) Updates the value of this transformation to that of a rotation transformation composed with the current value.AffineTransformation.rotate
(double sinTheta, double cosTheta) Updates the value of this transformation to that of a rotation around the origin composed with the current value, with the sin and cos of the rotation angle specified directly.AffineTransformation.rotate
(double theta, double x, double y) Updates the value of this transformation to that of a rotation around a given point composed with the current value.AffineTransformation.rotate
(double sinTheta, double cosTheta, double x, double y) Updates the value of this transformation to that of a rotation around a given point composed with the current value, with the sin and cos of the rotation angle specified directly.static AffineTransformation
AffineTransformation.rotationInstance
(double theta) Creates a transformation for a rotation about the origin by an angle theta.static AffineTransformation
AffineTransformation.rotationInstance
(double sinTheta, double cosTheta) Creates a transformation for a rotation by an angle theta, specified by the sine and cosine of the angle.static AffineTransformation
AffineTransformation.rotationInstance
(double theta, double x, double y) Creates a transformation for a rotation about the point (x,y) by an angle theta.static AffineTransformation
AffineTransformation.rotationInstance
(double sinTheta, double cosTheta, double x, double y) Creates a transformation for a rotation about the point (x,y) by an angle theta, specified by the sine and cosine of the angle.AffineTransformation.scale
(double xScale, double yScale) Updates the value of this transformation to that of a scale transformation composed with the current value.static AffineTransformation
AffineTransformation.scaleInstance
(double xScale, double yScale) Creates a transformation for a scaling relative to the origin.static AffineTransformation
AffineTransformation.scaleInstance
(double xScale, double yScale, double x, double y) Creates a transformation for a scaling relative to the point (x,y).AffineTransformation.setToIdentity()
Sets this transformation to be the identity transformation.AffineTransformation.setToReflection
(double x, double y) Sets this transformation to be a reflection about the line defined by vector (x,y).AffineTransformation.setToReflection
(double x0, double y0, double x1, double y1) Sets this transformation to be a reflection about the line defined by a line (x0,y0) - (x1,y1).AffineTransformation.setToReflectionBasic
(double x0, double y0, double x1, double y1) Explicitly computes the math for a reflection.AffineTransformation.setToRotation
(double theta) Sets this transformation to be a rotation around the origin.AffineTransformation.setToRotation
(double sinTheta, double cosTheta) Sets this transformation to be a rotation around the origin by specifying the sin and cos of the rotation angle directly.AffineTransformation.setToRotation
(double theta, double x, double y) Sets this transformation to be a rotation around a given point (x,y).AffineTransformation.setToRotation
(double sinTheta, double cosTheta, double x, double y) Sets this transformation to be a rotation around a given point (x,y) by specifying the sin and cos of the rotation angle directly.AffineTransformation.setToScale
(double xScale, double yScale) Sets this transformation to be a scaling.AffineTransformation.setToShear
(double xShear, double yShear) Sets this transformation to be a shear.AffineTransformation.setToTranslation
(double dx, double dy) Sets this transformation to be a translation.AffineTransformation.setTransformation
(double m00, double m01, double m02, double m10, double m11, double m12) Sets this transformation's matrix to have the given values.AffineTransformation.setTransformation
(AffineTransformation trans) Sets this transformation to be a copy of the given oneAffineTransformation.shear
(double xShear, double yShear) Updates the value of this transformation to that of a shear transformation composed with the current value.static AffineTransformation
AffineTransformation.shearInstance
(double xShear, double yShear) Creates a transformation for a shear.AffineTransformation.translate
(double x, double y) Updates the value of this transformation to that of a translation transformation composed with the current value.static AffineTransformation
AffineTransformation.translationInstance
(double x, double y) Creates a transformation for a translation.Methods in org.locationtech.jts.geom.util with parameters of type AffineTransformationModifier and TypeMethodDescriptionAffineTransformation.compose
(AffineTransformation trans) Updates this transformation to be the composition of this transformation with the givenAffineTransformation
.AffineTransformation.composeBefore
(AffineTransformation trans) Updates this transformation to be the composition of a givenAffineTransformation
with this transformation.AffineTransformation.setTransformation
(AffineTransformation trans) Sets this transformation to be a copy of the given oneConstructors in org.locationtech.jts.geom.util with parameters of type AffineTransformationModifierConstructorDescriptionConstructs a transformation which is a copy of the given one. -
Uses of AffineTransformation in org.locationtech.jtstest.testbuilder.geom
Methods in org.locationtech.jtstest.testbuilder.geom with parameters of type AffineTransformationModifier and TypeMethodDescriptionstatic Geometry
GeometryComponentTransformer.transform
(Geometry geom, Geometry component, AffineTransformation trans) static Geometry
GeometryComponentTransformer.transform
(Geometry geom, AffineTransformation trans)