public void writeExternal(ObjectOutput out) throws IOException {
  out.writeFloat(x);
  out.writeFloat(y);
}

public void writeExternal ( ObjectOutput out ) throws IOException { out . writeFloat ( x ) ; out . writeFloat ( y ) ; }
used with serialization . not to be called manually .
