code: public static void writePoint(ByteWriter writer, Point point)
  			throws IOException {
  
  		writer.writeDouble(point.getX());
  		writer.writeDouble(point.getY());
  
  		if (point.hasZ()) {
  			writer.writeDouble(point.getZ());
  		}
  
  		if (point.hasM()) {
  			writer.writeDouble(point.getM());
  		}
  	}
docs: Write a Point
  
  @param writer
  @param point
  @throws IOException