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:
clonein interfaceTransformation- Specified by:
clonein classUnaryTransformation
-
transform
Description copied from class:UnaryTransformationApplies the transformation to the ellipse centroid. The transformation doesn't currently change the ellipse width or height.- Specified by:
transformin interfaceTransformation- Overrides:
transformin classUnaryTransformation- Returns:
- the transformed ellipse.
-
transform
Description copied from class:UnaryTransformationApplies the transformation to the rectangle coordinate. The transformation doesn't currently change the rectangle width or height.- Specified by:
transformin interfaceTransformation- Overrides:
transformin classUnaryTransformation- Parameters:
rectangle- the rectangle to transform.- Returns:
- the transformed rectangle.
-