Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Paradox.Graphics.Rational Struct Reference

More...

Inheritance diagram for SiliconStudio.Paradox.Graphics.Rational:
IEquatable< Rational >

Public Member Functions

 Rational (int numerator, int denominator)
 
override string ToString ()
 
bool Equals (Rational other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

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

Public Attributes

int Numerator
 
int Denominator
 

Detailed Description

Represents a rational number.

The SharpDX.DXGI.Rational structure operates under the following rules:

  • 0/0 is legal and will be interpreted as 0/1.
  • 0/anything is interpreted as zero.
  • If you are representing a whole number, the denominator should be 1.

Definition at line 13 of file Rational.cs.

Constructor & Destructor Documentation

SiliconStudio.Paradox.Graphics.Rational.Rational ( int  numerator,
int  denominator 
)

Definition at line 15 of file Rational.cs.

Member Function Documentation

bool SiliconStudio.Paradox.Graphics.Rational.Equals ( Rational  other)

Definition at line 36 of file Rational.cs.

override bool SiliconStudio.Paradox.Graphics.Rational.Equals ( object  obj)

Definition at line 41 of file Rational.cs.

override int SiliconStudio.Paradox.Graphics.Rational.GetHashCode ( )

Definition at line 47 of file Rational.cs.

static bool SiliconStudio.Paradox.Graphics.Rational.operator!= ( Rational  left,
Rational  right 
)
static

Definition at line 60 of file Rational.cs.

static bool SiliconStudio.Paradox.Graphics.Rational.operator== ( Rational  left,
Rational  right 
)
static

Definition at line 55 of file Rational.cs.

override string SiliconStudio.Paradox.Graphics.Rational.ToString ( )

Definition at line 31 of file Rational.cs.

Member Data Documentation

int SiliconStudio.Paradox.Graphics.Rational.Denominator

An unsigned integer value representing the bottom of the rational number.

Definition at line 29 of file Rational.cs.

int SiliconStudio.Paradox.Graphics.Rational.Numerator

An unsigned integer value representing the top of the rational number.

Definition at line 24 of file Rational.cs.


The documentation for this struct was generated from the following file: