fmeobjects.FMEGeometryTools.rotate2D¶
-
FMEGeometryTools.
rotate2D
(geometry, center, angle)¶ The angle is CCW up from the horizontal and is measured in degrees. The returned geometry may or may not be the original object that was passed in. If a different object is returned, the original object will be destroyed. If an error occurs an exception is thrown.
Parameters: - geometry (FMEGeometry) – The geometry to rotate.
- center (FMEPoint) – The point to rotate the geometry around.
- angle (float) – The angle to rotate the geometry by.
Return type: Returns: The rotated geometry. Note: This method returns a terminal geometry type of the
FMEGeometry
; i.e. one of the leaf classes in theFMEGeometry
inheritance graph. For example, aFMESimpleArea
is returned if the geometry truly is a simple area.Raises: FMEException – An exception is raised if an error occurred.