Package com.kheops.jmap.spatial
Class ProjectionTransformation
java.lang.Object
com.kheops.jmap.spatial.UnaryTransformation
com.kheops.jmap.spatial.ProjectionTransformation
- All Implemented Interfaces:
Transformation
,Serializable
,Cloneable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProjectionTransformation
(Projection projection) Creates a new instance of the transformation.ProjectionTransformation
(Projection projection, boolean applyInverse) Creates a new instance of the transformation. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Applies the transformation to the ellipse centroid.Applies the projection to the specified coordinate.Applies the transformation to the rectangle coordinate.Methods inherited from class com.kheops.jmap.spatial.UnaryTransformation
transform, transform, transform
-
Constructor Details
-
ProjectionTransformation
Creates a new instance of the transformation.- Parameters:
projection
- the projection to be applied for the transformation.
-
ProjectionTransformation
Creates a new instance of the transformation.- Parameters:
projection
- the projection to be applied for the transformation.applyInverse
- if true, the inverse of the projection is applied
-
-
Method Details
-
transform
Applies the projection to the specified coordinate.- Parameters:
point
- the coordinate to apply projection to.- Returns:
- the projected point. The returned instance is always the same instance as point that was specified in parameter.
-
clone
- Specified by:
clone
in interfaceTransformation
- Specified by:
clone
in classUnaryTransformation
-
transform
Description copied from class:UnaryTransformation
Applies the transformation to the ellipse centroid. The transformation doesn't currently change the ellipse width or height.- Specified by:
transform
in interfaceTransformation
- Overrides:
transform
in classUnaryTransformation
- Returns:
- the transformed ellipse.
-
transform
Description copied from class:UnaryTransformation
Applies the transformation to the rectangle coordinate. The transformation doesn't currently change the rectangle width or height.- Specified by:
transform
in interfaceTransformation
- Overrides:
transform
in classUnaryTransformation
- Parameters:
rectangle
- the rectangle to transform.- Returns:
- the transformed rectangle.
-