getZ method

double getZ(
  1. int index
)

Returns ordinate Z of the specified coordinate if available.

@param index @return the value of the Z ordinate in the index'th coordinate, or Double.NaN if not defined.

Implementation

double getZ(int index) {
  if (hasZ()) {
    return getOrdinate(index, 2);
  } else {
    return double.nan;
  }
}