move static method

Geometry move(
  1. {required Geometry geometry,
  2. required double deltaX,
  3. required double deltaY}
)

Moves the provided geometry by the specified distances along the x-axis and y-axis.

Planar measurements of distance can be extremely inaccurate if using an unsuitable spatial reference. Ensure that you understand the potential for error with the geometry's spatial reference. If you need to calculate more accurate results, consider using a different spatial reference. For input geometries with a geographic spatial reference, consider projecting to an appropriate projected coordinate system before attempting to move them, as the distance represented by angular units of measure will differ depending on the geometry's location on the earth. See Spatial references for more information.

Supports true curves.

Parameters:

  • geometry — The geometry to move.
  • deltaX — The distance to move the geometry along the x-axis, in the units of the given geometry's spatial reference.
  • deltaY — The distance to move the geometry along the y-axis, in the units of the given geometry's spatial reference.

Return Value: A new geometry based on moving the given geometry by the given delta values.

Implementation

static Geometry move(
    {required Geometry geometry,
    required double deltaX,
    required double deltaY}) {
  _initializeArcGISEnvironmentIfNeeded();
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeometryEngine_move(
        geometry._handle, deltaX, deltaY, errorHandler);
  });
  return Geometry._fromHandle(objectHandle)!;
}