|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSystem.ValueType
Microsoft.Xna.Framework.Point
public final class Point
Defines a point in 2D space.
Field Summary | |
---|---|
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 Summary | |
---|---|
Point()
Initializes a new instance of Point. |
|
Point(int x,
int y)
Initializes a new instance of Point. |
Method Summary | |
---|---|
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 |
GetHashCode()
Gets the hash code for this object. |
java.lang.String |
ToString()
Returns a String that represents the current Point. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int X
public int Y
public static final Point Zero
Constructor Detail |
---|
public Point()
public Point(int x, int y)
x
- The x-coordinate of the Point.y
- The y-coordinate of the Point.Method Detail |
---|
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 GetHashCode()
public java.lang.String ToString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |