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

The FIURational structure represents a fraction via two UInt32 instances which are interpreted as numerator and denominator. More...

Inheritance diagram for FreeImageAPI.FIURational:
IEquatable< FIURational > IComparable< FIURational > IFormattable IComparable IConvertible IEquatable< FIURational > IComparable< FIURational > IFormattable IComparable IConvertible

Public Member Functions

 FIURational (uint n, uint d)
 Initializes a new instance based on the specified parameters. More...
 
unsafe FIURational (FITAG tag)
 Initializes a new instance based on the specified parameters. More...
 
 FIURational (decimal value)
 Initializes a new instance based on the specified parameters. More...
 
int Truncate ()
 Returns the truncated value of the fraction. More...
 
override string ToString ()
 Converts the numeric value of the FIURational object to its equivalent string representation. More...
 
override bool Equals (object obj)
 Tests whether the specified object is a FIURational structure and is equivalent to this FIURational structure. More...
 
override int GetHashCode ()
 Returns a hash code for this FIURational structure. More...
 
TypeCode IConvertible. GetTypeCode ()
 
bool IConvertible. ToBoolean (IFormatProvider provider)
 
byte IConvertible. ToByte (IFormatProvider provider)
 
char IConvertible. ToChar (IFormatProvider provider)
 
DateTime IConvertible. ToDateTime (IFormatProvider provider)
 
decimal IConvertible. ToDecimal (IFormatProvider provider)
 
double IConvertible. ToDouble (IFormatProvider provider)
 
short IConvertible. ToInt16 (IFormatProvider provider)
 
int IConvertible. ToInt32 (IFormatProvider provider)
 
long IConvertible. ToInt64 (IFormatProvider provider)
 
sbyte IConvertible. ToSByte (IFormatProvider provider)
 
float IConvertible. ToSingle (IFormatProvider provider)
 
string IConvertible. ToString (IFormatProvider provider)
 
object IConvertible. ToType (Type conversionType, IFormatProvider provider)
 
ushort IConvertible. ToUInt16 (IFormatProvider provider)
 
uint IConvertible. ToUInt32 (IFormatProvider provider)
 
ulong IConvertible. ToUInt64 (IFormatProvider provider)
 
int CompareTo (object obj)
 Compares this instance with a specified Object. More...
 
string ToString (string format, IFormatProvider formatProvider)
 Formats the value of the current instance using the specified format. More...
 
bool Equals (FIURational other)
 Tests whether the specified FIURational structure is equivalent to this FIURational structure. More...
 
int CompareTo (FIURational other)
 Compares this instance with a specified FIURational object. More...
 
 FIURational (uint n, uint d)
 Initializes a new instance based on the specified parameters. More...
 
unsafe FIURational (FITAG tag)
 Initializes a new instance based on the specified parameters. More...
 
 FIURational (decimal value)
 Initializes a new instance based on the specified parameters. More...
 
int Truncate ()
 Returns the truncated value of the fraction. More...
 
override string ToString ()
 Converts the numeric value of the FIURational object to its equivalent string representation. More...
 
override bool Equals (object obj)
 Tests whether the specified object is a FIURational structure and is equivalent to this FIURational structure. More...
 
override int GetHashCode ()
 Returns a hash code for this FIURational structure. More...
 
TypeCode IConvertible. GetTypeCode ()
 
bool IConvertible. ToBoolean (IFormatProvider provider)
 
byte IConvertible. ToByte (IFormatProvider provider)
 
char IConvertible. ToChar (IFormatProvider provider)
 
DateTime IConvertible. ToDateTime (IFormatProvider provider)
 
decimal IConvertible. ToDecimal (IFormatProvider provider)
 
double IConvertible. ToDouble (IFormatProvider provider)
 
short IConvertible. ToInt16 (IFormatProvider provider)
 
int IConvertible. ToInt32 (IFormatProvider provider)
 
long IConvertible. ToInt64 (IFormatProvider provider)
 
sbyte IConvertible. ToSByte (IFormatProvider provider)
 
float IConvertible. ToSingle (IFormatProvider provider)
 
string IConvertible. ToString (IFormatProvider provider)
 
object IConvertible. ToType (Type conversionType, IFormatProvider provider)
 
ushort IConvertible. ToUInt16 (IFormatProvider provider)
 
uint IConvertible. ToUInt32 (IFormatProvider provider)
 
ulong IConvertible. ToUInt64 (IFormatProvider provider)
 
int CompareTo (object obj)
 Compares this instance with a specified Object. More...
 
string ToString (string format, IFormatProvider formatProvider)
 Formats the value of the current instance using the specified format. More...
 
bool Equals (FIURational other)
 Tests whether the specified FIURational structure is equivalent to this FIURational structure. More...
 
int CompareTo (FIURational other)
 Compares this instance with a specified FIURational object. More...
 

Static Public Member Functions

static FIURational operator+ (FIURational value)
 Standard implementation of the operator. More...
 
static FIURational operator~ (FIURational value)
 Returns the reciprocal value of this instance. More...
 
static FIURational operator++ (FIURational value)
 Standard implementation of the operator. More...
 
static FIURational operator-- (FIURational value)
 Standard implementation of the operator. More...
 
static FIURational operator+ (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static FIURational operator- (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static FIURational operator* (FIURational left, FIURational r2)
 Standard implementation of the operator. More...
 
static FIURational operator/ (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static FIURational operator% (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator== (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator!= (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator> (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator< (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator>= (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator<= (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static operator bool (FIURational value)
 Converts the value of a FIURational structure to a Boolean structure. More...
 
static operator byte (FIURational value)
 Converts the value of a FIURational structure to a Byte structure. More...
 
static operator char (FIURational value)
 Converts the value of a FIURational structure to a Char structure. More...
 
static implicit operator decimal (FIURational value)
 Converts the value of a FIURational structure to a Decimal structure. More...
 
static implicit operator double (FIURational value)
 Converts the value of a FIURational structure to a Double structure. More...
 
static operator short (FIURational value)
 Converts the value of a FIURational structure to an Int16 structure. More...
 
static operator int (FIURational value)
 Converts the value of a FIURational structure to an Int32 structure. More...
 
static operator long (FIURational value)
 Converts the value of a FIURational structure to an Int64 structure. More...
 
static implicit operator float (FIURational value)
 Converts the value of a FIURational structure to a Single structure. More...
 
static operator sbyte (FIURational value)
 Converts the value of a FIURational structure to a SByte structure. More...
 
static operator ushort (FIURational value)
 Converts the value of a FIURational structure to an UInt16 structure. More...
 
static operator uint (FIURational value)
 Converts the value of a FIURational structure to an UInt32 structure. More...
 
static operator ulong (FIURational value)
 Converts the value of a FIURational structure to an UInt32 structure. More...
 
static operator FIURational (bool value)
 Converts the value of a Boolean structure to a FIURational structure. More...
 
static implicit operator FIURational (byte value)
 Converts the value of a Byte structure to a FIURational structure. More...
 
static implicit operator FIURational (char value)
 Converts the value of a Char structure to a FIURational structure. More...
 
static operator FIURational (decimal value)
 Converts the value of a Decimal structure to a FIURational structure. More...
 
static operator FIURational (double value)
 Converts the value of a Double structure to a FIURational structure. More...
 
static implicit operator FIURational (short value)
 Converts the value of an Int16 structure to a FIURational structure. More...
 
static implicit operator FIURational (int value)
 Converts the value of an Int32 structure to a FIURational structure. More...
 
static operator FIURational (long value)
 Converts the value of an Int64 structure to a FIURational structure. More...
 
static implicit operator FIURational (sbyte value)
 Converts the value of a SByte structure to a FIURational structure. More...
 
static operator FIURational (float value)
 Converts the value of a Single structure to a FIURational structure. More...
 
static implicit operator FIURational (ushort value)
 Converts the value of an UInt16 structure to a FIURational structure. More...
 
static operator FIURational (uint value)
 Converts the value of an UInt32 structure to a FIURational structure. More...
 
static operator FIURational (ulong value)
 Converts the value of an UInt64 structure to a FIURational structure. More...
 
static FIURational operator+ (FIURational value)
 Standard implementation of the operator. More...
 
static FIURational operator~ (FIURational value)
 Returns the reciprocal value of this instance. More...
 
static FIURational operator++ (FIURational value)
 Standard implementation of the operator. More...
 
static FIURational operator-- (FIURational value)
 Standard implementation of the operator. More...
 
static FIURational operator+ (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static FIURational operator- (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static FIURational operator* (FIURational left, FIURational r2)
 Standard implementation of the operator. More...
 
static FIURational operator/ (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static FIURational operator% (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator== (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator!= (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator> (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator< (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator>= (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static bool operator<= (FIURational left, FIURational right)
 Standard implementation of the operator. More...
 
static operator bool (FIURational value)
 Converts the value of a FIURational structure to a Boolean structure. More...
 
static operator byte (FIURational value)
 Converts the value of a FIURational structure to a Byte structure. More...
 
static operator char (FIURational value)
 Converts the value of a FIURational structure to a Char structure. More...
 
static implicit operator decimal (FIURational value)
 Converts the value of a FIURational structure to a Decimal structure. More...
 
static implicit operator double (FIURational value)
 Converts the value of a FIURational structure to a Double structure. More...
 
static operator short (FIURational value)
 Converts the value of a FIURational structure to an Int16 structure. More...
 
static operator int (FIURational value)
 Converts the value of a FIURational structure to an Int32 structure. More...
 
static operator long (FIURational value)
 Converts the value of a FIURational structure to an Int64 structure. More...
 
static implicit operator float (FIURational value)
 Converts the value of a FIURational structure to a Single structure. More...
 
static operator sbyte (FIURational value)
 Converts the value of a FIURational structure to a SByte structure. More...
 
static operator ushort (FIURational value)
 Converts the value of a FIURational structure to an UInt16 structure. More...
 
static operator uint (FIURational value)
 Converts the value of a FIURational structure to an UInt32 structure. More...
 
static operator ulong (FIURational value)
 Converts the value of a FIURational structure to an UInt32 structure. More...
 
static operator FIURational (bool value)
 Converts the value of a Boolean structure to a FIURational structure. More...
 
static implicit operator FIURational (byte value)
 Converts the value of a Byte structure to a FIURational structure. More...
 
static implicit operator FIURational (char value)
 Converts the value of a Char structure to a FIURational structure. More...
 
static operator FIURational (decimal value)
 Converts the value of a Decimal structure to a FIURational structure. More...
 
static operator FIURational (double value)
 Converts the value of a Double structure to a FIURational structure. More...
 
static implicit operator FIURational (short value)
 Converts the value of an Int16 structure to a FIURational structure. More...
 
static implicit operator FIURational (int value)
 Converts the value of an Int32 structure to a FIURational structure. More...
 
static operator FIURational (long value)
 Converts the value of an Int64 structure to a FIURational structure. More...
 
static implicit operator FIURational (sbyte value)
 Converts the value of a SByte structure to a FIURational structure. More...
 
static operator FIURational (float value)
 Converts the value of a Single structure to a FIURational structure. More...
 
static implicit operator FIURational (ushort value)
 Converts the value of an UInt16 structure to a FIURational structure. More...
 
static operator FIURational (uint value)
 Converts the value of an UInt32 structure to a FIURational structure. More...
 
static operator FIURational (ulong value)
 Converts the value of an UInt64 structure to a FIURational structure. More...
 

Static Public Attributes

static readonly FIURational MaxValue = new FIURational(UInt32.MaxValue, 1u)
 Represents the largest possible value of FIURational. This field is constant. More...
 
static readonly FIURational MinValue = new FIURational(0u, 1u)
 Represents the smallest possible value of FIURational. This field is constant. More...
 
static readonly FIURational Epsilon = new FIURational(1u, UInt32.MaxValue)
 Represents the smallest positive FIURational value greater than zero. This field is constant. More...
 

Properties

uint Numerator [get]
 The numerator of the fraction. More...
 
uint Denominator [get]
 The denominator of the fraction. More...
 
bool IsInteger [get]
 Returns whether the fraction is representing an integer value. More...
 

Detailed Description

The FIURational structure represents a fraction via two UInt32 instances which are interpreted as numerator and denominator.

The structure tries to approximate the value of FreeImageAPI.FIURational(decimal) when creating a new instance by using a better algorithm than FreeImage does.

The structure implements the following operators: +, ++, –, ==, != , >, >==, <, <== and ~ (which switches nominator and denomiator).

The structure can be converted into all .NET standard types either implicit or explicit.

Definition at line 58 of file FIURational.cs.

Constructor & Destructor Documentation

FreeImageAPI.FIURational.FIURational ( uint  n,
uint  d 
)

Initializes a new instance based on the specified parameters.

Parameters
nThe numerator.
dThe denominator.

Definition at line 86 of file FIURational.cs.

Referenced by FreeImageAPI.FIURational.operator FIURational(), FreeImageAPI.FIURational.operator%(), FreeImageAPI.FIURational.operator*(), and FreeImageAPI.FIURational.operator+().

unsafe FreeImageAPI.FIURational.FIURational ( FITAG  tag)

Initializes a new instance based on the specified parameters.

Parameters
tagThe tag to read the data from.

Definition at line 97 of file FIURational.cs.

FreeImageAPI.FIURational.FIURational ( decimal  value)

Initializes a new instance based on the specified parameters.

Parameters
valueThe value to convert into a fraction.
Exceptions
OverflowExceptionvalue cannot be converted into a fraction represented by two unsigned integer values.

Definition at line 119 of file FIURational.cs.

FreeImageAPI.FIURational.FIURational ( uint  n,
uint  d 
)

Initializes a new instance based on the specified parameters.

Parameters
nThe numerator.
dThe denominator.

Definition at line 86 of file FIURational.cs.

unsafe FreeImageAPI.FIURational.FIURational ( FITAG  tag)

Initializes a new instance based on the specified parameters.

Parameters
tagThe tag to read the data from.

Definition at line 97 of file FIURational.cs.

FreeImageAPI.FIURational.FIURational ( decimal  value)

Initializes a new instance based on the specified parameters.

Parameters
valueThe value to convert into a fraction.
Exceptions
OverflowExceptionvalue cannot be converted into a fraction represented by two unsigned integer values.

Definition at line 119 of file FIURational.cs.

Member Function Documentation

int FreeImageAPI.FIURational.CompareTo ( object  obj)

Compares this instance with a specified Object.

Parameters
objAn object to compare with this instance.
Returns
A 32-bit signed integer indicating the lexical relationship between the two comparands.
Exceptions
ArgumentExceptionobj is not a FIURational.

Definition at line 942 of file FIURational.cs.

Referenced by FreeImageAPI.FIURational.CompareTo().

int FreeImageAPI.FIURational.CompareTo ( object  obj)

Compares this instance with a specified Object.

Parameters
objAn object to compare with this instance.
Returns
A 32-bit signed integer indicating the lexical relationship between the two comparands.
Exceptions
ArgumentExceptionobj is not a FIURational.

Definition at line 942 of file FIURational.cs.

References FreeImageAPI.FIURational.CompareTo().

int FreeImageAPI.FIURational.CompareTo ( FIURational  other)

Compares this instance with a specified FIURational object.

Parameters
otherA FIURational to compare.
Returns
A signed number indicating the relative values of this instance and other .

Definition at line 997 of file FIURational.cs.

int FreeImageAPI.FIURational.CompareTo ( FIURational  other)

Compares this instance with a specified FIURational object.

Parameters
otherA FIURational to compare.
Returns
A signed number indicating the relative values of this instance and other .

Definition at line 999 of file FIURational.cs.

override bool FreeImageAPI.FIURational.Equals ( object  obj)

Tests whether the specified object is a FIURational structure and is equivalent to this FIURational structure.

Parameters
objThe object to test.
Returns
true if obj is a FIURational structure equivalent to this FIURational structure; otherwise, false.

Definition at line 383 of file FIURational.cs.

override bool FreeImageAPI.FIURational.Equals ( object  obj)

Tests whether the specified object is a FIURational structure and is equivalent to this FIURational structure.

Parameters
objThe object to test.
Returns
true if obj is a FIURational structure equivalent to this FIURational structure; otherwise, false.

Definition at line 383 of file FIURational.cs.

bool FreeImageAPI.FIURational.Equals ( FIURational  other)

Tests whether the specified FIURational structure is equivalent to this FIURational structure.

Parameters
otherA FIURational structure to compare to this instance.

Definition at line 982 of file FIURational.cs.

bool FreeImageAPI.FIURational.Equals ( FIURational  other)

Tests whether the specified FIURational structure is equivalent to this FIURational structure.

Parameters
otherA FIURational structure to compare to this instance.
Returns
true if obj is a FIURational structure equivalent to this FIURational structure; otherwise, false.

Definition at line 984 of file FIURational.cs.

override int FreeImageAPI.FIURational.GetHashCode ( )

Returns a hash code for this FIURational structure.

Returns
An integer value that specifies the hash code for this FIURational.

Definition at line 392 of file FIURational.cs.

override int FreeImageAPI.FIURational.GetHashCode ( )

Returns a hash code for this FIURational structure.

Returns
An integer value that specifies the hash code for this FIURational.

Definition at line 392 of file FIURational.cs.

TypeCode IConvertible. FreeImageAPI.FIURational.GetTypeCode ( )

Definition at line 847 of file FIURational.cs.

TypeCode IConvertible. FreeImageAPI.FIURational.GetTypeCode ( )

Definition at line 847 of file FIURational.cs.

static FreeImageAPI.FIURational.operator bool ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to a Boolean structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Boolean initialized to value .

Definition at line 586 of file FIURational.cs.

static FreeImageAPI.FIURational.operator bool ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to a Boolean structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Boolean initialized to value .

Definition at line 586 of file FIURational.cs.

static FreeImageAPI.FIURational.operator byte ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to a Byte structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Byte initialized to value .

Definition at line 596 of file FIURational.cs.

static FreeImageAPI.FIURational.operator byte ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to a Byte structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Byte initialized to value .

Definition at line 596 of file FIURational.cs.

static FreeImageAPI.FIURational.operator char ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to a Char structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Char initialized to value .

Definition at line 606 of file FIURational.cs.

static FreeImageAPI.FIURational.operator char ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to a Char structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Char initialized to value .

Definition at line 606 of file FIURational.cs.

static implicit FreeImageAPI.FIURational.operator decimal ( FIURational  value)
static

Converts the value of a FIURational structure to a Decimal structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Decimal initialized to value .

Definition at line 616 of file FIURational.cs.

static implicit FreeImageAPI.FIURational.operator decimal ( FIURational  value)
static

Converts the value of a FIURational structure to a Decimal structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Decimal initialized to value .

Definition at line 616 of file FIURational.cs.

static implicit FreeImageAPI.FIURational.operator double ( FIURational  value)
static

Converts the value of a FIURational structure to a Double structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Double initialized to value .

Definition at line 626 of file FIURational.cs.

static implicit FreeImageAPI.FIURational.operator double ( FIURational  value)
static

Converts the value of a FIURational structure to a Double structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Double initialized to value .

Definition at line 626 of file FIURational.cs.

static FreeImageAPI.FIURational.operator FIURational ( bool  value)
explicitstatic

Converts the value of a Boolean structure to a FIURational structure.

Parameters
valueA Boolean structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 718 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( bool  value)
explicitstatic

Converts the value of a Boolean structure to a FIURational structure.

Parameters
valueA Boolean structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 718 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( byte  value)
static

Converts the value of a Byte structure to a FIURational structure.

Parameters
valueA Byte structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 728 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( byte  value)
static

Converts the value of a Byte structure to a FIURational structure.

Parameters
valueA Byte structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 728 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( char  value)
static

Converts the value of a Char structure to a FIURational structure.

Parameters
valueA Char structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 738 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( char  value)
static

Converts the value of a Char structure to a FIURational structure.

Parameters
valueA Char structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 738 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( decimal  value)
explicitstatic

Converts the value of a Decimal structure to a FIURational structure.

Parameters
valueA Decimal structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 748 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( decimal  value)
explicitstatic

Converts the value of a Decimal structure to a FIURational structure.

Parameters
valueA Decimal structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 748 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( double  value)
explicitstatic

Converts the value of a Double structure to a FIURational structure.

Parameters
valueA Double structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 758 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( double  value)
explicitstatic

Converts the value of a Double structure to a FIURational structure.

Parameters
valueA Double structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 758 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( short  value)
static

Converts the value of an Int16 structure to a FIURational structure.

Parameters
valueAn Int16 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 768 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( short  value)
static

Converts the value of an Int16 structure to a FIURational structure.

Parameters
valueAn Int16 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 768 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( int  value)
static

Converts the value of an Int32 structure to a FIURational structure.

Parameters
valueAn Int32 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 778 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( int  value)
static

Converts the value of an Int32 structure to a FIURational structure.

Parameters
valueAn Int32 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 778 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( long  value)
explicitstatic

Converts the value of an Int64 structure to a FIURational structure.

Parameters
valueAn Int64 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 788 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( long  value)
explicitstatic

Converts the value of an Int64 structure to a FIURational structure.

Parameters
valueAn Int64 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 788 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( sbyte  value)
static

Converts the value of a SByte structure to a FIURational structure.

Parameters
valueA SByte structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 798 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( sbyte  value)
static

Converts the value of a SByte structure to a FIURational structure.

Parameters
valueA SByte structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 798 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( float  value)
explicitstatic

Converts the value of a Single structure to a FIURational structure.

Parameters
valueA Single structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 808 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( float  value)
explicitstatic

Converts the value of a Single structure to a FIURational structure.

Parameters
valueA Single structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 808 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( ushort  value)
static

Converts the value of an UInt16 structure to a FIURational structure.

Parameters
valueAn UInt16 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 818 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator FIURational ( ushort  value)
static

Converts the value of an UInt16 structure to a FIURational structure.

Parameters
valueAn UInt16 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 818 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( uint  value)
explicitstatic

Converts the value of an UInt32 structure to a FIURational structure.

Parameters
valueAn UInt32 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 828 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( uint  value)
explicitstatic

Converts the value of an UInt32 structure to a FIURational structure.

Parameters
valueAn UInt32 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 828 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( ulong  value)
explicitstatic

Converts the value of an UInt64 structure to a FIURational structure.

Parameters
valueAn UInt64 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 838 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FreeImageAPI.FIURational.operator FIURational ( ulong  value)
explicitstatic

Converts the value of an UInt64 structure to a FIURational structure.

Parameters
valueAn UInt64 structure.
Returns
A new instance of FIURational initialized to value .

Definition at line 838 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static implicit FreeImageAPI.FIURational.operator float ( FIURational  value)
static

Converts the value of a FIURational structure to a Single structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Single initialized to value .

Definition at line 666 of file FIURational.cs.

static implicit FreeImageAPI.FIURational.operator float ( FIURational  value)
static

Converts the value of a FIURational structure to a Single structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Single initialized to value .

Definition at line 666 of file FIURational.cs.

static FreeImageAPI.FIURational.operator int ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an Int32 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Int32 initialized to value .

Definition at line 646 of file FIURational.cs.

static FreeImageAPI.FIURational.operator int ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an Int32 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Int32 initialized to value .

Definition at line 646 of file FIURational.cs.

static FreeImageAPI.FIURational.operator long ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an Int64 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Int64 initialized to value .

Definition at line 656 of file FIURational.cs.

static FreeImageAPI.FIURational.operator long ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an Int64 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Int64 initialized to value .

Definition at line 656 of file FIURational.cs.

static FreeImageAPI.FIURational.operator sbyte ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to a SByte structure.

Parameters
valueA FIURational structure.
Returns
A new instance of SByte initialized to value .

Definition at line 676 of file FIURational.cs.

static FreeImageAPI.FIURational.operator sbyte ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to a SByte structure.

Parameters
valueA FIURational structure.
Returns
A new instance of SByte initialized to value .

Definition at line 676 of file FIURational.cs.

static FreeImageAPI.FIURational.operator short ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an Int16 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Int16 initialized to value .

Definition at line 636 of file FIURational.cs.

static FreeImageAPI.FIURational.operator short ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an Int16 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of Int16 initialized to value .

Definition at line 636 of file FIURational.cs.

static FreeImageAPI.FIURational.operator uint ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an UInt32 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of UInt32 initialized to value .

Definition at line 696 of file FIURational.cs.

static FreeImageAPI.FIURational.operator uint ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an UInt32 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of UInt32 initialized to value .

Definition at line 696 of file FIURational.cs.

static FreeImageAPI.FIURational.operator ulong ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an UInt32 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of UInt32 initialized to value .

Definition at line 706 of file FIURational.cs.

static FreeImageAPI.FIURational.operator ulong ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an UInt32 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of UInt32 initialized to value .

Definition at line 706 of file FIURational.cs.

static FreeImageAPI.FIURational.operator ushort ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an UInt16 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of UInt16 initialized to value .

Definition at line 686 of file FIURational.cs.

static FreeImageAPI.FIURational.operator ushort ( FIURational  value)
explicitstatic

Converts the value of a FIURational structure to an UInt16 structure.

Parameters
valueA FIURational structure.
Returns
A new instance of UInt16 initialized to value .

Definition at line 686 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator!= ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 530 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator!= ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 530 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator% ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 508 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FIURational FreeImageAPI.FIURational.operator% ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 508 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FIURational FreeImageAPI.FIURational.operator* ( FIURational  left,
FIURational  r2 
)
static

Standard implementation of the operator.

Definition at line 483 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FIURational FreeImageAPI.FIURational.operator* ( FIURational  left,
FIURational  r2 
)
static

Standard implementation of the operator.

Definition at line 483 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FIURational FreeImageAPI.FIURational.operator+ ( FIURational  value)
static

Standard implementation of the operator.

Definition at line 402 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator+ ( FIURational  value)
static

Standard implementation of the operator.

Definition at line 402 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator+ ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 446 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FIURational FreeImageAPI.FIURational.operator+ ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 446 of file FIURational.cs.

References FreeImageAPI.FIURational.FIURational().

static FIURational FreeImageAPI.FIURational.operator++ ( FIURational  value)
static

Standard implementation of the operator.

Definition at line 422 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator++ ( FIURational  value)
static

Standard implementation of the operator.

Definition at line 422 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator- ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 462 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator- ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 462 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator-- ( FIURational  value)
static

Standard implementation of the operator.

Definition at line 434 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator-- ( FIURational  value)
static

Standard implementation of the operator.

Definition at line 434 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator/ ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 497 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator/ ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 497 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator< ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 550 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator< ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 550 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator<= ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 570 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator<= ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 570 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator== ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 520 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator== ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 520 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator> ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 540 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator> ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 540 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator>= ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 560 of file FIURational.cs.

static bool FreeImageAPI.FIURational.operator>= ( FIURational  left,
FIURational  right 
)
static

Standard implementation of the operator.

Definition at line 560 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator~ ( FIURational  value)
static

Returns the reciprocal value of this instance.

Definition at line 410 of file FIURational.cs.

static FIURational FreeImageAPI.FIURational.operator~ ( FIURational  value)
static

Returns the reciprocal value of this instance.

Definition at line 410 of file FIURational.cs.

bool IConvertible. FreeImageAPI.FIURational.ToBoolean ( IFormatProvider  provider)

Definition at line 852 of file FIURational.cs.

bool IConvertible. FreeImageAPI.FIURational.ToBoolean ( IFormatProvider  provider)

Definition at line 852 of file FIURational.cs.

byte IConvertible. FreeImageAPI.FIURational.ToByte ( IFormatProvider  provider)

Definition at line 857 of file FIURational.cs.

byte IConvertible. FreeImageAPI.FIURational.ToByte ( IFormatProvider  provider)

Definition at line 857 of file FIURational.cs.

char IConvertible. FreeImageAPI.FIURational.ToChar ( IFormatProvider  provider)

Definition at line 862 of file FIURational.cs.

char IConvertible. FreeImageAPI.FIURational.ToChar ( IFormatProvider  provider)

Definition at line 862 of file FIURational.cs.

DateTime IConvertible. FreeImageAPI.FIURational.ToDateTime ( IFormatProvider  provider)

Definition at line 867 of file FIURational.cs.

DateTime IConvertible. FreeImageAPI.FIURational.ToDateTime ( IFormatProvider  provider)

Definition at line 867 of file FIURational.cs.

decimal IConvertible. FreeImageAPI.FIURational.ToDecimal ( IFormatProvider  provider)

Definition at line 872 of file FIURational.cs.

decimal IConvertible. FreeImageAPI.FIURational.ToDecimal ( IFormatProvider  provider)

Definition at line 872 of file FIURational.cs.

double IConvertible. FreeImageAPI.FIURational.ToDouble ( IFormatProvider  provider)

Definition at line 877 of file FIURational.cs.

double IConvertible. FreeImageAPI.FIURational.ToDouble ( IFormatProvider  provider)

Definition at line 877 of file FIURational.cs.

short IConvertible. FreeImageAPI.FIURational.ToInt16 ( IFormatProvider  provider)

Definition at line 882 of file FIURational.cs.

short IConvertible. FreeImageAPI.FIURational.ToInt16 ( IFormatProvider  provider)

Definition at line 882 of file FIURational.cs.

int IConvertible. FreeImageAPI.FIURational.ToInt32 ( IFormatProvider  provider)

Definition at line 887 of file FIURational.cs.

int IConvertible. FreeImageAPI.FIURational.ToInt32 ( IFormatProvider  provider)

Definition at line 887 of file FIURational.cs.

long IConvertible. FreeImageAPI.FIURational.ToInt64 ( IFormatProvider  provider)

Definition at line 892 of file FIURational.cs.

long IConvertible. FreeImageAPI.FIURational.ToInt64 ( IFormatProvider  provider)

Definition at line 892 of file FIURational.cs.

sbyte IConvertible. FreeImageAPI.FIURational.ToSByte ( IFormatProvider  provider)

Definition at line 897 of file FIURational.cs.

sbyte IConvertible. FreeImageAPI.FIURational.ToSByte ( IFormatProvider  provider)

Definition at line 897 of file FIURational.cs.

float IConvertible. FreeImageAPI.FIURational.ToSingle ( IFormatProvider  provider)

Definition at line 902 of file FIURational.cs.

float IConvertible. FreeImageAPI.FIURational.ToSingle ( IFormatProvider  provider)

Definition at line 902 of file FIURational.cs.

override string FreeImageAPI.FIURational.ToString ( )

Converts the numeric value of the FIURational object to its equivalent string representation.

Returns
The string representation of the value of this instance.

Definition at line 371 of file FIURational.cs.

References FreeImageAPI.FIURational.ToString().

override string FreeImageAPI.FIURational.ToString ( )

Converts the numeric value of the FIURational object to its equivalent string representation.

Returns
The string representation of the value of this instance.

Definition at line 371 of file FIURational.cs.

Referenced by FreeImageAPI.FIURational.ToString().

string IConvertible. FreeImageAPI.FIURational.ToString ( IFormatProvider  provider)

Definition at line 907 of file FIURational.cs.

References FreeImageAPI.FIURational.ToString().

string IConvertible. FreeImageAPI.FIURational.ToString ( IFormatProvider  provider)

Definition at line 907 of file FIURational.cs.

References FreeImageAPI.FIURational.ToString().

string FreeImageAPI.FIURational.ToString ( string  format,
IFormatProvider  formatProvider 
)

Formats the value of the current instance using the specified format.

Parameters
formatThe String specifying the format to use.
formatProviderThe IFormatProvider to use to format the value.
Returns
A String containing the value of the current instance in the specified format.

Definition at line 965 of file FIURational.cs.

References DirectX.format.

string FreeImageAPI.FIURational.ToString ( string  format,
IFormatProvider  formatProvider 
)

Formats the value of the current instance using the specified format.

Parameters
formatThe String specifying the format to use.
formatProviderThe IFormatProvider to use to format the value.
Returns
A String containing the value of the current instance in the specified format.

Definition at line 965 of file FIURational.cs.

References DirectX.format.

object IConvertible. FreeImageAPI.FIURational.ToType ( Type  conversionType,
IFormatProvider  provider 
)

Definition at line 912 of file FIURational.cs.

object IConvertible. FreeImageAPI.FIURational.ToType ( Type  conversionType,
IFormatProvider  provider 
)

Definition at line 912 of file FIURational.cs.

ushort IConvertible. FreeImageAPI.FIURational.ToUInt16 ( IFormatProvider  provider)

Definition at line 917 of file FIURational.cs.

ushort IConvertible. FreeImageAPI.FIURational.ToUInt16 ( IFormatProvider  provider)

Definition at line 917 of file FIURational.cs.

uint IConvertible. FreeImageAPI.FIURational.ToUInt32 ( IFormatProvider  provider)

Definition at line 922 of file FIURational.cs.

uint IConvertible. FreeImageAPI.FIURational.ToUInt32 ( IFormatProvider  provider)

Definition at line 922 of file FIURational.cs.

ulong IConvertible. FreeImageAPI.FIURational.ToUInt64 ( IFormatProvider  provider)

Definition at line 927 of file FIURational.cs.

ulong IConvertible. FreeImageAPI.FIURational.ToUInt64 ( IFormatProvider  provider)

Definition at line 927 of file FIURational.cs.

int FreeImageAPI.FIURational.Truncate ( )

Returns the truncated value of the fraction.

Returns

Definition at line 177 of file FIURational.cs.

int FreeImageAPI.FIURational.Truncate ( )

Returns the truncated value of the fraction.

Returns

Definition at line 177 of file FIURational.cs.

Member Data Documentation

static readonly FIURational FreeImageAPI.FIURational.Epsilon = new FIURational(1u, UInt32.MaxValue)
static

Represents the smallest positive FIURational value greater than zero. This field is constant.

Definition at line 79 of file FIURational.cs.

static readonly FIURational FreeImageAPI.FIURational.MaxValue = new FIURational(UInt32.MaxValue, 1u)
static

Represents the largest possible value of FIURational. This field is constant.

Definition at line 69 of file FIURational.cs.

static readonly FIURational FreeImageAPI.FIURational.MinValue = new FIURational(0u, 1u)
static

Represents the smallest possible value of FIURational. This field is constant.

Definition at line 74 of file FIURational.cs.

Property Documentation

uint FreeImageAPI.FIURational.Denominator
get

The denominator of the fraction.

Definition at line 169 of file FIURational.cs.

bool FreeImageAPI.FIURational.IsInteger
get

Returns whether the fraction is representing an integer value.

Definition at line 186 of file FIURational.cs.

uint FreeImageAPI.FIURational.Numerator
get

The numerator of the fraction.

Definition at line 161 of file FIURational.cs.


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