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 ( ) ) ; } }
Write a Point