Microsoft.Xna.Framework
Class Point

java.lang.Object
  extended by System.ValueType
      extended by Microsoft.Xna.Framework.Point
All Implemented Interfaces:
IEquatable<Point>

public final class Point
extends ValueType
implements IEquatable<Point>

Defines a point in 2D space.

Author:
Halofreak1990

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

X

public int X
Specifies the x-coordinate of the Point.


Y

public int Y
Specifies the y-coordinate of the Point.


Zero

public static final Point Zero
Returns the point (0,0).

Constructor Detail

Point

public Point()
Initializes a new instance of Point.


Point

public Point(int x,
             int y)
Initializes a new instance of Point.

Parameters:
x - The x-coordinate of the Point.
y - The y-coordinate of the Point.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Determines whether the specified Object is equal to this instance.

Overrides:
equals in class java.lang.Object
Parameters:
The - object to compare this instance to.

Equals

public boolean Equals(Point other)
Determines whether two Point instances are equal.

Specified by:
Equals in interface IEquatable<Point>
Parameters:
other - The Point to compare this instance to.
Returns:
true if the current object is equal to the other parameter; otherwise, false.

GetHashCode

public int GetHashCode()
Gets the hash code for this object.


ToString

public java.lang.String ToString()
Returns a String that represents the current Point.