Struct D2D1Point2U
Represents an x-coordinate and y-coordinate pair in two-dimensional space.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1Point2U : IEquatable<D2D1Point2U>
Constructors
| Edit this page View SourceD2D1Point2U(uint, uint)
Initializes a new instance of the D2D1Point2U struct.
Declaration
public D2D1Point2U(uint x, uint y)
Parameters
Type | Name | Description |
---|---|---|
uint | x | The x-coordinate of the point. |
uint | y | The y-coordinate of the point. |
Properties
| Edit this page View SourceX
Gets or sets the x-coordinate of the point.
Declaration
public uint X { get; set; }
Property Value
Type | Description |
---|---|
uint |
Y
Gets or sets the y-coordinate of the point.
Declaration
public uint Y { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceEquals(D2D1Point2U)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1Point2U other)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2U | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D2D1Point2U, D2D1Point2U)
Compares two D2D1Point2U objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1Point2U left, D2D1Point2U right)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2U | left | The left D2D1Point2U to compare. |
D2D1Point2U | right | The right D2D1Point2U to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1Point2U, D2D1Point2U)
Compares two D2D1Point2U objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1Point2U left, D2D1Point2U right)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2U | left | The left D2D1Point2U to compare. |
D2D1Point2U | right | The right D2D1Point2U to compare. |
Returns
Type | Description |
---|---|
bool |