Method Rotate
Rotate(Geometry, Double, MapPoint)
Rotates the geometry by the specified angle of rotation around the provided origin point.
Declaration
public static Geometry Rotate(this Geometry geometry, double angle, MapPoint origin = null)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | The geometry to rotate. |
System. |
angle | The angle by which to rotate the geometry, counterclockwise, in degrees. |
Map |
origin | The center of rotation. If |
Returns
Type | Description |
---|---|
Geometry | A new geometry constructed by rotating the input geometry by the specified angle of rotation around the provided origin point. |
Remarks
The angle of rotation is used in the form of the modulo of 360 degrees; for example rotating by 540 degrees is equivalent to rotating the geometry by 180 degrees. A positive value corresponds to a counterclockwise rotation.
The Geometry
If the origin
has a different Spatialgeometry
,
the point will be reprojected before the geometry is rotated, using the default transformation.
Rotating a Map
Supports true curves.
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.3 - 200.6 |
.NET | 200.3 - 200.6 |
.NET Windows | 200.3 - 200.6 |
.NET Android | 200.3 - 200.6 |
.NET iOS | 200.3 - 200.6 |
.NET Framework | 200.3 - 200.6 |
UWP | 200.3 - 200.6 |