createWithM

fun <T : Geometry> createWithM(geometry: T, m: Double?): T

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 Geometry.hasM true. If the m-value supplied is null, then the geometry's m-value will be removed, and the resulting geometry has Geometry.hasM false.

Supports true curves.

Return

A copy of the given geometry with its m-values set to the supplied value.

Since

200.1.0

Parameters

geometry

The geometry from which to create the new geometry.

m

The m value for the new geometry or null if the new geometry should not have an m value.