affineTransformOperator

AMD: require(["esri/geometry/operators/affineTransformOperator"], (affineTransformOperator) => { /* code goes here */ });
ESM: import * as affineTransformOperator from "@arcgis/core/geometry/operators/affineTransformOperator.js";
Object: esri/geometry/operators/affineTransformOperator
Since: ArcGIS Maps SDK for JavaScript 4.31
beta

Applies an affine transformation to 2D geometries via the Transformation class.

Method Overview

Name Return Type Summary Object

Executes an affine transformation on the geometry.

affineTransformOperator

Executes an affine transformation on multiple geometries.

affineTransformOperator

Method Details

execute

Method
execute(geometry, transformation){Geometry}

Executes an affine transformation on the geometry.

Parameters
geometry Geometry

The geometry to be transformed.

transformation Transformation

The transformation to apply to the geometry.

Returns
Type Description
Geometry Returns the transformed geometry.

executeMany

Method
executeMany(geometries, transformation){Geometry[]}

Executes an affine transformation on multiple geometries.

Parameters
geometries Geometry[]

The geometries to be transformed.

transformation Transformation

The transformation to apply to the geometries.

Returns
Type Description
Geometry[] Returns the transformed geometries.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.