Package | Description |
---|---|
org.locationtech.jts.geom.util |
Provides classes that parse and modify Geometry objects.
|
Modifier and Type | Method and Description |
---|---|
AffineTransformation |
AffineTransformation.compose(AffineTransformation trans)
Updates this transformation to be
the composition of this transformation with the given
AffineTransformation . |
AffineTransformation |
AffineTransformation.composeBefore(AffineTransformation trans)
Updates this transformation to be the composition
of a given
AffineTransformation 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 |
AffineTransformation.getInverse()
Computes the inverse of this transformation, if one
exists.
|
AffineTransformation |
AffineTransformationBuilder.getTransformation()
Computes the
AffineTransformation
determined by the control point mappings,
or null if the control vectors do not determine a well-defined transformation. |
AffineTransformation |
AffineTransformation.reflect(double x,
double y)
Updates the value of this transformation
to that of a reflection transformation composed
with the current value.
|
AffineTransformation |
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 |
AffineTransformation.rotate(double theta)
Updates the value of this transformation
to that of a rotation transformation composed
with the current value.
|
AffineTransformation |
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 |
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 |
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 |
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 |
AffineTransformation.setToIdentity()
Sets this transformation to be the identity transformation.
|
AffineTransformation |
AffineTransformation.setToReflection(double x,
double y)
Sets this transformation to be a reflection
about the line defined by vector (x,y).
|
AffineTransformation |
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 |
AffineTransformation.setToReflectionBasic(double x0,
double y0,
double x1,
double y1)
Explicitly computes the math for a reflection.
|
AffineTransformation |
AffineTransformation.setToRotation(double theta)
Sets this transformation to be a rotation around the origin.
|
AffineTransformation |
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 |
AffineTransformation.setToRotation(double theta,
double x,
double y)
Sets this transformation to be a rotation
around a given point (x,y).
|
AffineTransformation |
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 |
AffineTransformation.setToScale(double xScale,
double yScale)
Sets this transformation to be a scaling.
|
AffineTransformation |
AffineTransformation.setToShear(double xShear,
double yShear)
Sets this transformation to be a shear.
|
AffineTransformation |
AffineTransformation.setToTranslation(double dx,
double dy)
Sets this transformation to be a translation.
|
AffineTransformation |
AffineTransformation.setTransformation(AffineTransformation trans)
Sets this transformation to be a copy of the given one
|
AffineTransformation |
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 |
AffineTransformation.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 |
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.
|
Modifier and Type | Method and Description |
---|---|
AffineTransformation |
AffineTransformation.compose(AffineTransformation trans)
Updates this transformation to be
the composition of this transformation with the given
AffineTransformation . |
AffineTransformation |
AffineTransformation.composeBefore(AffineTransformation trans)
Updates this transformation to be the composition
of a given
AffineTransformation with this transformation. |
AffineTransformation |
AffineTransformation.setTransformation(AffineTransformation trans)
Sets this transformation to be a copy of the given one
|
Constructor and Description |
---|
AffineTransformation(AffineTransformation trans)
Constructs a transformation which is
a copy of the given one.
|
Copyright © 2024. All rights reserved.