require(["esri/geometry/operators/affineTransformOperator"], (affineTransformOperator) => { /* code goes here */ });
import * as affineTransformOperator from "@arcgis/core/geometry/operators/affineTransformOperator.js";
esri/geometry/operators/affineTransformOperator
Applies an affine transformation to 2D geometries via the Transformation class.
Property Overview
Name | Type | Summary | Object |
---|---|---|---|
Indicates if the operator supports input geometries that contain curves. | affineTransformOperator |
Property Details
-
supportsCurves
supportsCurves Booleanreadonly
-
Indicates if the operator supports input geometries that contain curves.
- Default Value:true
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
execute(geometry, transformation){GeometryUnion}
-
Executes an affine transformation on the geometry.
Parametersgeometry GeometryUnionThe geometry to be transformed.
transformation TransformationThe transformation to apply to the
geometry
.ReturnsType Description GeometryUnion Returns the transformed geometry.
-
executeMany
executeMany(geometries, transformation){GeometryUnion[]}
-
Executes an affine transformation on multiple geometries.
Parametersgeometries GeometryUnion[]The geometries to be transformed. All the geometries must have the same spatial reference.
transformation TransformationThe transformation to apply to the
geometries
.ReturnsType Description GeometryUnion[] Returns the transformed geometries.