Point

struct Point : System.ValueType, System.IEquatable<Point>

Describes a 2D-point.

int X

The x coordinate of this T:Microsoft.Xna.Framework.Point.

int Y

The y coordinate of this T:Microsoft.Xna.Framework.Point.

readonly Point Zero

Returns a T:Microsoft.Xna.Framework.Point with coordinates 0, 0.

string get_DebugDisplayString()
Point op_Addition(Point value1, Point value2)

Adds two points.

Parameters:
  • value1 (Microsoft.Xna.Framework.Point) – Source T:Microsoft.Xna.Framework.Point on the left of the add sign.
  • value2 (Microsoft.Xna.Framework.Point) – Source T:Microsoft.Xna.Framework.Point on the right of the add sign.
Returns:

Sum of the points.

Point op_Subtraction(Point value1, Point value2)

Subtracts a T:Microsoft.Xna.Framework.Point from a T:Microsoft.Xna.Framework.Point.

Parameters:
  • value1 (Microsoft.Xna.Framework.Point) – Source T:Microsoft.Xna.Framework.Point on the left of the sub sign.
  • value2 (Microsoft.Xna.Framework.Point) – Source T:Microsoft.Xna.Framework.Point on the right of the sub sign.
Returns:

Result of the subtraction.

Point op_Multiply(Point value1, Point value2)

Multiplies the components of two points by each other.

Parameters:
  • value1 (Microsoft.Xna.Framework.Point) – Source T:Microsoft.Xna.Framework.Point on the left of the mul sign.
  • value2 (Microsoft.Xna.Framework.Point) – Source T:Microsoft.Xna.Framework.Point on the right of the mul sign.
Returns:

Result of the multiplication.

Point op_Division(Point source, Point divisor)

Divides the components of a T:Microsoft.Xna.Framework.Point by the components of another T:Microsoft.Xna.Framework.Point.

Parameters:
  • source (Microsoft.Xna.Framework.Point) – Source T:Microsoft.Xna.Framework.Point on the left of the div sign.
  • divisor (Microsoft.Xna.Framework.Point) – Divisor T:Microsoft.Xna.Framework.Point on the right of the div sign.
Returns:

The result of dividing the points.

bool op_Equality(Point a, Point b)

Compares whether two T:Microsoft.Xna.Framework.Point instances are equal.

Parameters:
  • a (Microsoft.Xna.Framework.Point) – T:Microsoft.Xna.Framework.Point instance on the left of the equal sign.
  • b (Microsoft.Xna.Framework.Point) – T:Microsoft.Xna.Framework.Point instance on the right of the equal sign.
Returns:

true if the instances are equal; false otherwise.

bool op_Inequality(Point a, Point b)

Compares whether two T:Microsoft.Xna.Framework.Point instances are not equal.

Parameters:
  • a (Microsoft.Xna.Framework.Point) – T:Microsoft.Xna.Framework.Point instance on the left of the not equal sign.
  • b (Microsoft.Xna.Framework.Point) – T:Microsoft.Xna.Framework.Point instance on the right of the not equal sign.
Returns:

true if the instances are not equal; false otherwise.

bool Equals(System.Object obj)

Compares whether current instance is equal to specified T:System.Object.

Parameters:
  • obj (System.Object) – The T:System.Object to compare.
Returns:

true if the instances are equal; false otherwise.

bool Equals(Point other)

Compares whether current instance is equal to specified T:Microsoft.Xna.Framework.Point.

Parameters:
  • other (Microsoft.Xna.Framework.Point) – The T:Microsoft.Xna.Framework.Point to compare.
Returns:

true if the instances are equal; false otherwise.

int GetHashCode()

Gets the hash code of this T:Microsoft.Xna.Framework.Point.

Returns:Hash code of this T:Microsoft.Xna.Framework.Point.
string ToString()

Returns a T:System.String representation of this T:Microsoft.Xna.Framework.Point in the format: {X:[F:Microsoft.Xna.Framework.Point.X] Y:[F:Microsoft.Xna.Framework.Point.Y]}

Returns:T:System.String representation of this T:Microsoft.Xna.Framework.Point.
Vector2 ToVector2()

Gets a T:Microsoft.Xna.Framework.Vector2 representation for this object.

Returns:A T:Microsoft.Xna.Framework.Vector2 representation for this object.