public bool contains(Point2D p) { return contains (p.getX (), p.getY ()); }
public static void writePoint2D(Point2D p, ObjectOutputStream stream) { if (stream == null) { string str = "Null 'stream' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else if (p != null) { stream.writeBoolean(false); stream.writeDouble(p.getX()); stream.writeDouble(p.getY()); } else stream.writeBoolean(true); }