getM method
Returns ordinate M of the specified coordinate if available.
@param index @return the value of the M ordinate in the index'th coordinate, or Double.NaN if not defined.
Implementation
double getM(int index) {
if (hasM()) {
final int mIndex = getDimension() - getMeasures();
return getOrdinate(index, mIndex);
} else {
return double.nan;
}
}