Parameters
- polyline
- The input polyline.
- firstM
- The first M-value that is not NaN.
- lastM
- The last M-value that is not NaN.
Return Value
The first and last defined M-values in the polyline. If the polyline is empty or all the M-values are NaN, then NaN values are returned.