setM static method
Return a copy of a geometry with the supplied m-value.
If the given geometry already has m-values, they are replaced within the resulting geometry by the supplied value. The resulting geometry has a Geometry.hasM value of true.
Supports true curves.
Parameters:
geometry
— A geometry.m
— The m-value.
Return Value: A copy of the given geometry with its m-values set to the supplied value.
Implementation
static Geometry setM({
required Geometry geometry,
required double m,
}) {
_initializeArcGISEnvironmentIfNeeded();
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeometryEngine_setM(
geometry._handle,
m,
errorHandler,
);
});
return Geometry._fromHandle(
objectHandle,
)!;
}