GCPoint2 Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) | |
| 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. |