Struct DxgiRational
Represents a rational number.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiRational : IEquatable<DxgiRational>
Constructors
| Edit this page View SourceDxgiRational(uint, uint)
Initializes a new instance of the DxgiRational struct.
Declaration
public DxgiRational(uint numerator, uint denominator)
Parameters
Type | Name | Description |
---|---|---|
uint | numerator | An unsigned integer value representing the top of the rational number. |
uint | denominator | An unsigned integer value representing the bottom of the rational number. |
Properties
| Edit this page View SourceDenominator
Gets an unsigned integer value representing the bottom of the rational number.
Declaration
public uint Denominator { get; }
Property Value
Type | Description |
---|---|
uint |
Numerator
Gets an unsigned integer value representing the top of the rational number.
Declaration
public uint Numerator { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceEquals(DxgiRational)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DxgiRational other)
Parameters
Type | Name | Description |
---|---|---|
DxgiRational | 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
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |
Overrides
Operators
| Edit this page View Sourceoperator ==(DxgiRational, DxgiRational)
Compares two DxgiRational objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DxgiRational left, DxgiRational right)
Parameters
Type | Name | Description |
---|---|---|
DxgiRational | left | The left DxgiRational to compare. |
DxgiRational | right | The right DxgiRational to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DxgiRational, DxgiRational)
Compares two DxgiRational objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DxgiRational left, DxgiRational right)
Parameters
Type | Name | Description |
---|---|---|
DxgiRational | left | The left DxgiRational to compare. |
DxgiRational | right | The right DxgiRational to compare. |
Returns
Type | Description |
---|---|
bool |