Determines whether or not two points are equal. Two instances of
Point2D
are equal if the values of their
x
and
y
member fields, representing
their position in the coordinate space, are the same.
Returns:
true
if the object to be compared is
an instance of
Point2D
and has
the same values;
false
otherwise.
Parameters:
-
obj - an object to be compared with this
Point2D