Show / Hide Table of Contents

Class Point

Defines a point in 2D space.

Inheritance
System.Object
Point
Namespace: VRageMath
Assembly: VRage.Math.dll
Syntax
public sealed class Point : ValueType, IEquatable<Point>

Constructors

Point(Int32, Int32)

Initializes a new instance of Point.

Declaration
public Point(int x, int y)
Parameters
Type Name Description
System.Int32 x

The x-coordinate of the Point.

System.Int32 y

The y-coordinate of the Point.

Fields

X

Specifies the x-coordinate of the Point.

Declaration
public int X
Field Value
Type Description
System.Int32

Y

Specifies the y-coordinate of the Point.

Declaration
public int Y
Field Value
Type Description
System.Int32

Properties

Zero

Returns the point (0,0).

Declaration
public static Point Zero { get; }
Property Value
Type Description
Point

Methods

Equals(Object)

Determines whether two Point instances are equal.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The object to compare this instance to.

Returns
Type Description
System.Boolean

Equals(Point)

Determines whether two Point instances are equal.

Declaration
public bool Equals(Point other)
Parameters
Type Name Description
Point other

The Point to compare this instance to.

Returns
Type Description
System.Boolean

GetHashCode()

Gets the hash code for this object.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

ToString()

Returns a String that represents the current Point.

Declaration
public override string ToString()
Returns
Type Description
System.String

Operators

Equality(Point, Point)

Determines whether two Point instances are equal.

Declaration
public static bool operator ==(Point a, Point b)
Parameters
Type Name Description
Point a

Point on the left side of the equal sign.

Point b

Point on the right side of the equal sign.

Returns
Type Description
System.Boolean

Inequality(Point, Point)

Determines whether two Point instances are not equal.

Declaration
public static bool operator !=(Point a, Point b)
Parameters
Type Name Description
Point a

The Point on the left side of the equal sign.

Point b

The Point on the right side of the equal sign.

Returns
Type Description
System.Boolean
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾