rotateSelectedElement method
- required double angle,
- ArcGISPoint? origin,
Rotates the GeometryEditor.selectedElement by the specified angle.
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 by 180 degrees. A positive value corresponds to a counterclockwise rotation.
If the origin ArcGISPoint has a different SpatialReference than the associated ArcGISMapViewController, the point will be reprojected before the geometry is rotated, using the default transformation.
If GeometryEditor.selectedElement is a GeometryEditorVertex, or a GeometryEditorGeometry of type ArcGISPoint, and the origin parameter is null (or is at the same location as the selected element), then rotating the selected element has no effect.
Parameters:
angle
— The angle by which to rotate the selected element, counterclockwise, in degrees.origin
— The center of rotation. If null, the center of the extent of the GeometryEditor.selectedElement is used.
Implementation
void rotateSelectedElement({
required double angle,
ArcGISPoint? origin,
}) {
_withThrowingErrorHandler((errorHandler) {
runtimecore.RT_GeometryEditor_rotateSelectedElement(
_handle,
angle,
origin?._handle ?? ffi.nullptr,
errorHandler,
);
});
}