Point Structure

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Defines a point in 2D space.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

Syntax

'Declaration
Public Structure Point
public struct Point

The Point type exposes the following members.

Constructors

  Name Description
Public method Point Initializes a new instance of Point.

Top

Properties

  Name Description
Public propertyStatic member Zero Returns the point (0,0).

Top

Methods

  Name Description
Public method Equals(Object) Determines whether two Point instances are equal. (Overrides ValueType.Equals(Object).)
Public method Equals(Point) Determines whether two Point instances are equal.
Public method GetHashCode Gets the hash code for this object. (Overrides ValueType.GetHashCode().)
Public method ToString Returns a String that represents the current Point. (Overrides ValueType.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether two Point instances are equal.
Public operatorStatic member Inequality Determines whether two Point instances are not equal.

Top

Fields

  Name Description
Public field X Specifies the x-coordinate of the Point.
Public field Y Specifies the y-coordinate of the Point.

Top

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.