[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DXGI.Rational

Struct Rational

Namespace
GrapeCity.Documents.DX.DXGI
Assembly
GcDocs.DX.Windows.dll

DXGI_RATIONAL

public struct Rational : IEquatable<Rational>
Implements
System.IEquatable<T><Rational>
Inherited Members
System.ValueType.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

Rational(int, int)

Initializes a new instance of the C1.Win.DX.DXGI.Rational structure.

public Rational(int numerator, int denominator)

Parameters

numerator int
denominator int

Fields

Denominator

unsigned int Denominator

public int Denominator

Field Value

int

Empty

An empty rational that can be used for comparisons.

public static readonly Rational Empty

Field Value

Rational

Numerator

unsigned int Numerator

public int Numerator

Field Value

int

Methods

Equals(Rational)

Determines whether the specified Rational is equal to the current object.

public bool Equals(Rational other)

Parameters

other Rational

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

Operators

operator ==(Rational, Rational)

Determines if the specified Rational objects are equal.

public static bool operator ==(Rational left, Rational right)

Parameters

left Rational
right Rational

Returns

bool

operator !=(Rational, Rational)

Determines if the specified Rational objects are not equal.

public static bool operator !=(Rational left, Rational right)

Parameters

left Rational
right Rational

Returns

bool