getZ method

double getZ(
  1. int index
)
override

@see org.locationtech.jts.geom.CoordinateSequence#getZ(int)

Implementation

double getZ(int index) {
  if (hasZ()) {
    return coordinates![index].z;
  } else {
    return double.nan;
  }
}