code: public void toBytes(byte[] b, int offset) {
      ByteConverter.float8(b, offset, x);
      ByteConverter.float8(b, offset + 8, y);
    }
docs: Populate the byte array with PGpoint in the binary syntax expected by org.postgresql.