public bool contains(Point2D p) 
		{
			return contains (p.getX (), p.getY ());
		}
예제 #2
0
 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);
 }