Share via


GCPoint2 Struct

Definition

Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.

public struct GCPoint2 : IEquatable<GameController.GCPoint2>
type GCPoint2 = struct
Inheritance
GCPoint2
Implements

Constructors

Name Description
GCPoint2(GCPoint2)

Initializes a new instance of the GCPoint2 struct from the specified GCPoint2.

GCPoint2(Single, Single)

Initializes a new instance of the GCPoint2 struct with the specified coordinates.

Fields

Name Description
Zero

Represents a new instance of the GCPoint2 where both the X and Y coordinates are 0.

Properties

Name Description
IsEmpty

Gets a value indicating whether this GCPoint2 is empty.

X

Gets or sets the x-coordinate of this GCPoint2.

Y

Gets or sets the y-coordinate of this GCPoint2.

Methods

Name Description
Deconstruct(NFloat, NFloat)

Deconstructs GCPoint2 by X and Y.

Equals(GCPoint2)

Specifies whether this GCPoint2 contains the same coordinates as the specified GCPoint2.

Equals(Object)

Specifies whether this GCPoint2 contains the same coordinates as the specified Object.

GetHashCode()

Returns a hash code for this GCPoint2 structure.

ToString()

Converts this GCPoint2 to a human readable string.

Operators

Name Description
Equality(GCPoint2, GCPoint2)

Compares two GCPoint2 values for equality.

Inequality(GCPoint2, GCPoint2)

Compares two GCPoint2 values for inequality.

Applies to