public final class Point extends ValueType implements IEquatable<Point>
Modifier and Type | Field and Description |
---|---|
int |
X
Specifies the x-coordinate of the Point.
|
int |
Y
Specifies the y-coordinate of the Point.
|
static Point |
Zero
Returns the point (0,0).
|
Constructor and Description |
---|
Point()
Initializes a new instance of Point.
|
Point(int x,
int y)
Initializes a new instance of Point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether the specified Object is equal to this instance.
|
boolean |
Equals(Point other)
Determines whether two Point instances are equal.
|
int |
hashCode()
Gets the hash code for this object.
|
java.lang.String |
toString()
Returns a String that represents the current Point.
|
public int X
public int Y
public static final Point Zero
public Point()
public Point(int x, int y)
x
- The x-coordinate of the Point.y
- The y-coordinate of the Point.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
The
- object to compare this instance to.public boolean Equals(Point other)
Equals
in interface IEquatable<Point>
other
- The Point to compare this instance to.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object