![]() |
Paradox Game Engine
v1.0.0 beta06
|
The FIRational structure represents a fraction via two Int32 instances which are interpreted as numerator and denominator. More...
Public Member Functions | |
FIRational (int n, int d) | |
Initializes a new instance based on the specified parameters. More... | |
unsafe | FIRational (FITAG tag) |
Initializes a new instance based on the specified parameters. More... | |
FIRational (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 FIRational object to its equivalent string representation. More... | |
override bool | Equals (object obj) |
Tests whether the specified object is a FIRational structure and is equivalent to this FIRational structure. More... | |
override int | GetHashCode () |
Returns a hash code for this FIRational 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 (FIRational other) |
Tests whether the specified FIRational structure is equivalent to this FIRational structure. More... | |
int | CompareTo (FIRational other) |
Compares this instance with a specified FIRational object. More... | |
FIRational (int n, int d) | |
Initializes a new instance based on the specified parameters. More... | |
unsafe | FIRational (FITAG tag) |
Initializes a new instance based on the specified parameters. More... | |
FIRational (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 FIRational object to its equivalent string representation. More... | |
override bool | Equals (object obj) |
Tests whether the specified object is a FIRational structure and is equivalent to this FIRational structure. More... | |
override int | GetHashCode () |
Returns a hash code for this FIRational 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 (FIRational other) |
Tests whether the specified FIRational structure is equivalent to this FIRational structure. More... | |
int | CompareTo (FIRational other) |
Compares this instance with a specified FIRational object. More... | |
Static Public Member Functions | |
static FIRational | operator+ (FIRational r1) |
Standard implementation of the operator. More... | |
static FIRational | operator- (FIRational r1) |
Standard implementation of the operator. More... | |
static FIRational | operator~ (FIRational r1) |
Returns the reciprocal value of this instance. More... | |
static FIRational | operator++ (FIRational r1) |
Standard implementation of the operator. More... | |
static FIRational | operator-- (FIRational r1) |
Standard implementation of the operator. More... | |
static FIRational | operator+ (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static FIRational | operator- (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static FIRational | operator* (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static FIRational | operator/ (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static FIRational | operator% (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator== (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator!= (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator> (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator< (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator>= (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator<= (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static | operator bool (FIRational value) |
Converts the value of a FIRational structure to a Boolean structure. More... | |
static | operator byte (FIRational value) |
Converts the value of a FIRational structure to a Byte structure. More... | |
static | operator char (FIRational value) |
Converts the value of a FIRational structure to a Char structure. More... | |
static implicit | operator decimal (FIRational value) |
Converts the value of a FIRational structure to a Decimal structure. More... | |
static implicit | operator double (FIRational value) |
Converts the value of a FIRational structure to a Double structure. More... | |
static | operator short (FIRational value) |
Converts the value of a FIRational structure to an Int16 structure. More... | |
static | operator int (FIRational value) |
Converts the value of a FIRational structure to an Int32 structure. More... | |
static | operator long (FIRational value) |
Converts the value of a FIRational structure to an Int64 structure. More... | |
static implicit | operator float (FIRational value) |
Converts the value of a FIRational structure to a Single structure. More... | |
static | operator sbyte (FIRational value) |
Converts the value of a FIRational structure to a SByte structure. More... | |
static | operator ushort (FIRational value) |
Converts the value of a FIRational structure to an UInt16 structure. More... | |
static | operator uint (FIRational value) |
Converts the value of a FIRational structure to an UInt32 structure. More... | |
static | operator ulong (FIRational value) |
Converts the value of a FIRational structure to an UInt64 structure. More... | |
static | operator FIRational (bool value) |
Converts the value of a Boolean structure to a FIRational structure. More... | |
static implicit | operator FIRational (byte value) |
Converts the value of a Byte structure to a FIRational structure. More... | |
static implicit | operator FIRational (char value) |
Converts the value of a Char structure to a FIRational structure. More... | |
static | operator FIRational (decimal value) |
Converts the value of a Decimal structure to a FIRational structure. More... | |
static | operator FIRational (double value) |
Converts the value of a Double structure to a FIRational structure. More... | |
static implicit | operator FIRational (short value) |
Converts the value of an Int16 structure to a FIRational structure. More... | |
static implicit | operator FIRational (int value) |
Converts the value of an Int32 structure to a FIRational structure. More... | |
static | operator FIRational (long value) |
Converts the value of an Int64 structure to a FIRational structure. More... | |
static implicit | operator FIRational (sbyte value) |
Converts the value of a SByte structure to a FIRational structure. More... | |
static | operator FIRational (float value) |
Converts the value of a Single structure to a FIRational structure. More... | |
static implicit | operator FIRational (ushort value) |
Converts the value of an UInt16 structure to a FIRational structure. More... | |
static | operator FIRational (uint value) |
Converts the value of an UInt32 structure to a FIRational structure. More... | |
static | operator FIRational (ulong value) |
Converts the value of an UInt64 structure to a FIRational structure. More... | |
static FIRational | operator+ (FIRational r1) |
Standard implementation of the operator. More... | |
static FIRational | operator- (FIRational r1) |
Standard implementation of the operator. More... | |
static FIRational | operator~ (FIRational r1) |
Returns the reciprocal value of this instance. More... | |
static FIRational | operator++ (FIRational r1) |
Standard implementation of the operator. More... | |
static FIRational | operator-- (FIRational r1) |
Standard implementation of the operator. More... | |
static FIRational | operator+ (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static FIRational | operator- (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static FIRational | operator* (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static FIRational | operator/ (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static FIRational | operator% (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator== (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator!= (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator> (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator< (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator>= (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static bool | operator<= (FIRational r1, FIRational r2) |
Standard implementation of the operator. More... | |
static | operator bool (FIRational value) |
Converts the value of a FIRational structure to a Boolean structure. More... | |
static | operator byte (FIRational value) |
Converts the value of a FIRational structure to a Byte structure. More... | |
static | operator char (FIRational value) |
Converts the value of a FIRational structure to a Char structure. More... | |
static implicit | operator decimal (FIRational value) |
Converts the value of a FIRational structure to a Decimal structure. More... | |
static implicit | operator double (FIRational value) |
Converts the value of a FIRational structure to a Double structure. More... | |
static | operator short (FIRational value) |
Converts the value of a FIRational structure to an Int16 structure. More... | |
static | operator int (FIRational value) |
Converts the value of a FIRational structure to an Int32 structure. More... | |
static | operator long (FIRational value) |
Converts the value of a FIRational structure to an Int64 structure. More... | |
static implicit | operator float (FIRational value) |
Converts the value of a FIRational structure to a Single structure. More... | |
static | operator sbyte (FIRational value) |
Converts the value of a FIRational structure to a SByte structure. More... | |
static | operator ushort (FIRational value) |
Converts the value of a FIRational structure to an UInt16 structure. More... | |
static | operator uint (FIRational value) |
Converts the value of a FIRational structure to an UInt32 structure. More... | |
static | operator ulong (FIRational value) |
Converts the value of a FIRational structure to an UInt64 structure. More... | |
static | operator FIRational (bool value) |
Converts the value of a Boolean structure to a FIRational structure. More... | |
static implicit | operator FIRational (byte value) |
Converts the value of a Byte structure to a FIRational structure. More... | |
static implicit | operator FIRational (char value) |
Converts the value of a Char structure to a FIRational structure. More... | |
static | operator FIRational (decimal value) |
Converts the value of a Decimal structure to a FIRational structure. More... | |
static | operator FIRational (double value) |
Converts the value of a Double structure to a FIRational structure. More... | |
static implicit | operator FIRational (short value) |
Converts the value of an Int16 structure to a FIRational structure. More... | |
static implicit | operator FIRational (int value) |
Converts the value of an Int32 structure to a FIRational structure. More... | |
static | operator FIRational (long value) |
Converts the value of an Int64 structure to a FIRational structure. More... | |
static implicit | operator FIRational (sbyte value) |
Converts the value of a SByte structure to a FIRational structure. More... | |
static | operator FIRational (float value) |
Converts the value of a Single structure to a FIRational structure. More... | |
static implicit | operator FIRational (ushort value) |
Converts the value of an UInt16 structure to a FIRational structure. More... | |
static | operator FIRational (uint value) |
Converts the value of an UInt32 structure to a FIRational structure. More... | |
static | operator FIRational (ulong value) |
Converts the value of an UInt64 structure to a FIRational structure. More... | |
Static Public Attributes | |
static readonly FIRational | MaxValue = new FIRational(Int32.MaxValue, 1) |
Represents the largest possible value of FIRational. This field is constant. More... | |
static readonly FIRational | MinValue = new FIRational(Int32.MinValue, 1) |
Represents the smallest possible value of FIRational. This field is constant. More... | |
static readonly FIRational | Epsilon = new FIRational(1, Int32.MaxValue) |
Represents the smallest positive FIRational value greater than zero. This field is constant. More... | |
Properties | |
int | Numerator [get] |
The numerator of the fraction. More... | |
int | Denominator [get] |
The denominator of the fraction. More... | |
bool | IsInteger [get] |
Returns whether the fraction is representing an integer value. More... | |
The FIRational structure represents a fraction via two Int32 instances which are interpreted as numerator and denominator.
The structure tries to approximate the value of FreeImageAPI.FIRational(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 FIRational.cs.
FreeImageAPI.FIRational.FIRational | ( | int | n, |
int | d | ||
) |
Initializes a new instance based on the specified parameters.
n | The numerator. |
d | The denominator. |
Definition at line 86 of file FIRational.cs.
Referenced by FreeImageAPI.FIRational.operator FIRational(), FreeImageAPI.FIRational.operator%(), FreeImageAPI.FIRational.operator*(), and FreeImageAPI.FIRational.operator+().
unsafe FreeImageAPI.FIRational.FIRational | ( | FITAG | tag | ) |
Initializes a new instance based on the specified parameters.
tag | The tag to read the data from. |
Definition at line 97 of file FIRational.cs.
FreeImageAPI.FIRational.FIRational | ( | decimal | value | ) |
Initializes a new instance based on the specified parameters.
value | The value to convert into a fraction. |
OverflowException | value cannot be converted into a fraction represented by two integer values. |
Definition at line 119 of file FIRational.cs.
FreeImageAPI.FIRational.FIRational | ( | int | n, |
int | d | ||
) |
Initializes a new instance based on the specified parameters.
n | The numerator. |
d | The denominator. |
Definition at line 86 of file FIRational.cs.
unsafe FreeImageAPI.FIRational.FIRational | ( | FITAG | tag | ) |
Initializes a new instance based on the specified parameters.
tag | The tag to read the data from. |
Definition at line 97 of file FIRational.cs.
FreeImageAPI.FIRational.FIRational | ( | decimal | value | ) |
Initializes a new instance based on the specified parameters.
value | The value to convert into a fraction. |
OverflowException | value cannot be converted into a fraction represented by two integer values. |
Definition at line 119 of file FIRational.cs.
int FreeImageAPI.FIRational.CompareTo | ( | object | obj | ) |
Compares this instance with a specified Object.
obj | An object to compare with this instance. |
ArgumentException | obj is not a FIRational. |
Definition at line 943 of file FIRational.cs.
Referenced by FreeImageAPI.FIRational.CompareTo().
int FreeImageAPI.FIRational.CompareTo | ( | object | obj | ) |
Compares this instance with a specified Object.
obj | An object to compare with this instance. |
ArgumentException | obj is not a FIRational. |
Definition at line 943 of file FIRational.cs.
References FreeImageAPI.FIRational.CompareTo().
int FreeImageAPI.FIRational.CompareTo | ( | FIRational | other | ) |
Compares this instance with a specified FIRational object.
other | A FIRational to compare. |
Definition at line 998 of file FIRational.cs.
int FreeImageAPI.FIRational.CompareTo | ( | FIRational | other | ) |
Compares this instance with a specified FIRational object.
other | A FIRational to compare. |
Definition at line 1000 of file FIRational.cs.
override bool FreeImageAPI.FIRational.Equals | ( | object | obj | ) |
Tests whether the specified object is a FIRational structure and is equivalent to this FIRational structure.
obj | The object to test. |
Definition at line 395 of file FIRational.cs.
override bool FreeImageAPI.FIRational.Equals | ( | object | obj | ) |
Tests whether the specified object is a FIRational structure and is equivalent to this FIRational structure.
obj | The object to test. |
Definition at line 395 of file FIRational.cs.
bool FreeImageAPI.FIRational.Equals | ( | FIRational | other | ) |
Tests whether the specified FIRational structure is equivalent to this FIRational structure.
other | A FIRational structure to compare to this instance. |
Definition at line 983 of file FIRational.cs.
bool FreeImageAPI.FIRational.Equals | ( | FIRational | other | ) |
Tests whether the specified FIRational structure is equivalent to this FIRational structure.
other | A FIRational structure to compare to this instance. |
Definition at line 985 of file FIRational.cs.
override int FreeImageAPI.FIRational.GetHashCode | ( | ) |
Returns a hash code for this FIRational structure.
Definition at line 404 of file FIRational.cs.
override int FreeImageAPI.FIRational.GetHashCode | ( | ) |
Returns a hash code for this FIRational structure.
Definition at line 404 of file FIRational.cs.
TypeCode IConvertible. FreeImageAPI.FIRational.GetTypeCode | ( | ) |
Definition at line 848 of file FIRational.cs.
TypeCode IConvertible. FreeImageAPI.FIRational.GetTypeCode | ( | ) |
Definition at line 848 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to a Boolean structure.
value | A FIRational structure. |
Definition at line 587 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to a Boolean structure.
value | A FIRational structure. |
Definition at line 587 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to a Byte structure.
value | A FIRational structure. |
Definition at line 597 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to a Byte structure.
value | A FIRational structure. |
Definition at line 597 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to a Char structure.
value | A FIRational structure. |
Definition at line 607 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to a Char structure.
value | A FIRational structure. |
Definition at line 607 of file FIRational.cs.
|
static |
Converts the value of a FIRational structure to a Decimal structure.
value | A FIRational structure. |
Definition at line 617 of file FIRational.cs.
|
static |
Converts the value of a FIRational structure to a Decimal structure.
value | A FIRational structure. |
Definition at line 617 of file FIRational.cs.
|
static |
Converts the value of a FIRational structure to a Double structure.
value | A FIRational structure. |
Definition at line 627 of file FIRational.cs.
|
static |
Converts the value of a FIRational structure to a Double structure.
value | A FIRational structure. |
Definition at line 627 of file FIRational.cs.
|
explicitstatic |
Converts the value of a Boolean structure to a FIRational structure.
value | A Boolean structure. |
Definition at line 719 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of a Boolean structure to a FIRational structure.
value | A Boolean structure. |
Definition at line 719 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of a Byte structure to a FIRational structure.
value | A Byte structure. |
Definition at line 729 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of a Byte structure to a FIRational structure.
value | A Byte structure. |
Definition at line 729 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of a Char structure to a FIRational structure.
value | A Char structure. |
Definition at line 739 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of a Char structure to a FIRational structure.
value | A Char structure. |
Definition at line 739 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of a Decimal structure to a FIRational structure.
value | A Decimal structure. |
Definition at line 749 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of a Decimal structure to a FIRational structure.
value | A Decimal structure. |
Definition at line 749 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of a Double structure to a FIRational structure.
value | A Double structure. |
Definition at line 759 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of a Double structure to a FIRational structure.
value | A Double structure. |
Definition at line 759 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of an Int16 structure to a FIRational structure.
value | An Int16 structure. |
Definition at line 769 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of an Int16 structure to a FIRational structure.
value | An Int16 structure. |
Definition at line 769 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of an Int32 structure to a FIRational structure.
value | An Int32 structure. |
Definition at line 779 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of an Int32 structure to a FIRational structure.
value | An Int32 structure. |
Definition at line 779 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of an Int64 structure to a FIRational structure.
value | An Int64 structure. |
Definition at line 789 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of an Int64 structure to a FIRational structure.
value | An Int64 structure. |
Definition at line 789 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of a SByte structure to a FIRational structure.
value | A SByte structure. |
Definition at line 799 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of a SByte structure to a FIRational structure.
value | A SByte structure. |
Definition at line 799 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of a Single structure to a FIRational structure.
value | A Single structure. |
Definition at line 809 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of a Single structure to a FIRational structure.
value | A Single structure. |
Definition at line 809 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of an UInt16 structure to a FIRational structure.
value | An UInt16 structure. |
Definition at line 819 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of an UInt16 structure to a FIRational structure.
value | An UInt16 structure. |
Definition at line 819 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of an UInt32 structure to a FIRational structure.
value | An UInt32 structure. |
Definition at line 829 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of an UInt32 structure to a FIRational structure.
value | An UInt32 structure. |
Definition at line 829 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of an UInt64 structure to a FIRational structure.
value | An UInt64 structure. |
Definition at line 839 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
explicitstatic |
Converts the value of an UInt64 structure to a FIRational structure.
value | An UInt64 structure. |
Definition at line 839 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Converts the value of a FIRational structure to a Single structure.
value | A FIRational structure. |
Definition at line 667 of file FIRational.cs.
|
static |
Converts the value of a FIRational structure to a Single structure.
value | A FIRational structure. |
Definition at line 667 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an Int32 structure.
value | A FIRational structure. |
Definition at line 647 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an Int32 structure.
value | A FIRational structure. |
Definition at line 647 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an Int64 structure.
value | A FIRational structure. |
Definition at line 657 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an Int64 structure.
value | A FIRational structure. |
Definition at line 657 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to a SByte structure.
value | A FIRational structure. |
Definition at line 677 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to a SByte structure.
value | A FIRational structure. |
Definition at line 677 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an Int16 structure.
value | A FIRational structure. |
Definition at line 637 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an Int16 structure.
value | A FIRational structure. |
Definition at line 637 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an UInt32 structure.
value | A FIRational structure. |
Definition at line 697 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an UInt32 structure.
value | A FIRational structure. |
Definition at line 697 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an UInt64 structure.
value | A FIRational structure. |
Definition at line 707 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an UInt64 structure.
value | A FIRational structure. |
Definition at line 707 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an UInt16 structure.
value | A FIRational structure. |
Definition at line 687 of file FIRational.cs.
|
explicitstatic |
Converts the value of a FIRational structure to an UInt16 structure.
value | A FIRational structure. |
Definition at line 687 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 537 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 537 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 515 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Standard implementation of the operator.
Definition at line 515 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Standard implementation of the operator.
Definition at line 490 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Standard implementation of the operator.
Definition at line 490 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Standard implementation of the operator.
Definition at line 414 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 414 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 467 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Standard implementation of the operator.
Definition at line 467 of file FIRational.cs.
References FreeImageAPI.FIRational.FIRational().
|
static |
Standard implementation of the operator.
Definition at line 443 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 443 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 422 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 422 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 482 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 482 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 455 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 455 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 504 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 504 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 554 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 554 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 572 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 572 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 527 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 527 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 545 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 545 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 563 of file FIRational.cs.
|
static |
Standard implementation of the operator.
Definition at line 563 of file FIRational.cs.
|
static |
Returns the reciprocal value of this instance.
Definition at line 431 of file FIRational.cs.
|
static |
Returns the reciprocal value of this instance.
Definition at line 431 of file FIRational.cs.
bool IConvertible. FreeImageAPI.FIRational.ToBoolean | ( | IFormatProvider | provider | ) |
Definition at line 853 of file FIRational.cs.
bool IConvertible. FreeImageAPI.FIRational.ToBoolean | ( | IFormatProvider | provider | ) |
Definition at line 853 of file FIRational.cs.
byte IConvertible. FreeImageAPI.FIRational.ToByte | ( | IFormatProvider | provider | ) |
Definition at line 858 of file FIRational.cs.
byte IConvertible. FreeImageAPI.FIRational.ToByte | ( | IFormatProvider | provider | ) |
Definition at line 858 of file FIRational.cs.
char IConvertible. FreeImageAPI.FIRational.ToChar | ( | IFormatProvider | provider | ) |
Definition at line 863 of file FIRational.cs.
char IConvertible. FreeImageAPI.FIRational.ToChar | ( | IFormatProvider | provider | ) |
Definition at line 863 of file FIRational.cs.
DateTime IConvertible. FreeImageAPI.FIRational.ToDateTime | ( | IFormatProvider | provider | ) |
Definition at line 868 of file FIRational.cs.
DateTime IConvertible. FreeImageAPI.FIRational.ToDateTime | ( | IFormatProvider | provider | ) |
Definition at line 868 of file FIRational.cs.
decimal IConvertible. FreeImageAPI.FIRational.ToDecimal | ( | IFormatProvider | provider | ) |
Definition at line 873 of file FIRational.cs.
decimal IConvertible. FreeImageAPI.FIRational.ToDecimal | ( | IFormatProvider | provider | ) |
Definition at line 873 of file FIRational.cs.
double IConvertible. FreeImageAPI.FIRational.ToDouble | ( | IFormatProvider | provider | ) |
Definition at line 878 of file FIRational.cs.
double IConvertible. FreeImageAPI.FIRational.ToDouble | ( | IFormatProvider | provider | ) |
Definition at line 878 of file FIRational.cs.
short IConvertible. FreeImageAPI.FIRational.ToInt16 | ( | IFormatProvider | provider | ) |
Definition at line 883 of file FIRational.cs.
short IConvertible. FreeImageAPI.FIRational.ToInt16 | ( | IFormatProvider | provider | ) |
Definition at line 883 of file FIRational.cs.
int IConvertible. FreeImageAPI.FIRational.ToInt32 | ( | IFormatProvider | provider | ) |
Definition at line 888 of file FIRational.cs.
int IConvertible. FreeImageAPI.FIRational.ToInt32 | ( | IFormatProvider | provider | ) |
Definition at line 888 of file FIRational.cs.
long IConvertible. FreeImageAPI.FIRational.ToInt64 | ( | IFormatProvider | provider | ) |
Definition at line 893 of file FIRational.cs.
long IConvertible. FreeImageAPI.FIRational.ToInt64 | ( | IFormatProvider | provider | ) |
Definition at line 893 of file FIRational.cs.
sbyte IConvertible. FreeImageAPI.FIRational.ToSByte | ( | IFormatProvider | provider | ) |
Definition at line 898 of file FIRational.cs.
sbyte IConvertible. FreeImageAPI.FIRational.ToSByte | ( | IFormatProvider | provider | ) |
Definition at line 898 of file FIRational.cs.
float IConvertible. FreeImageAPI.FIRational.ToSingle | ( | IFormatProvider | provider | ) |
Definition at line 903 of file FIRational.cs.
float IConvertible. FreeImageAPI.FIRational.ToSingle | ( | IFormatProvider | provider | ) |
Definition at line 903 of file FIRational.cs.
override string FreeImageAPI.FIRational.ToString | ( | ) |
Converts the numeric value of the FIRational object to its equivalent string representation.
Definition at line 383 of file FIRational.cs.
References FreeImageAPI.FIRational.ToString().
override string FreeImageAPI.FIRational.ToString | ( | ) |
Converts the numeric value of the FIRational object to its equivalent string representation.
Definition at line 383 of file FIRational.cs.
Referenced by FreeImageAPI.FIRational.ToString().
string IConvertible. FreeImageAPI.FIRational.ToString | ( | IFormatProvider | provider | ) |
Definition at line 908 of file FIRational.cs.
References FreeImageAPI.FIRational.ToString().
string IConvertible. FreeImageAPI.FIRational.ToString | ( | IFormatProvider | provider | ) |
Definition at line 908 of file FIRational.cs.
References FreeImageAPI.FIRational.ToString().
string FreeImageAPI.FIRational.ToString | ( | string | format, |
IFormatProvider | formatProvider | ||
) |
Formats the value of the current instance using the specified format.
format | The String specifying the format to use. |
formatProvider | The IFormatProvider to use to format the value. |
Definition at line 966 of file FIRational.cs.
References DirectX.format.
string FreeImageAPI.FIRational.ToString | ( | string | format, |
IFormatProvider | formatProvider | ||
) |
Formats the value of the current instance using the specified format.
format | The String specifying the format to use. |
formatProvider | The IFormatProvider to use to format the value. |
Definition at line 966 of file FIRational.cs.
References DirectX.format.
object IConvertible. FreeImageAPI.FIRational.ToType | ( | Type | conversionType, |
IFormatProvider | provider | ||
) |
Definition at line 913 of file FIRational.cs.
object IConvertible. FreeImageAPI.FIRational.ToType | ( | Type | conversionType, |
IFormatProvider | provider | ||
) |
Definition at line 913 of file FIRational.cs.
ushort IConvertible. FreeImageAPI.FIRational.ToUInt16 | ( | IFormatProvider | provider | ) |
Definition at line 918 of file FIRational.cs.
ushort IConvertible. FreeImageAPI.FIRational.ToUInt16 | ( | IFormatProvider | provider | ) |
Definition at line 918 of file FIRational.cs.
uint IConvertible. FreeImageAPI.FIRational.ToUInt32 | ( | IFormatProvider | provider | ) |
Definition at line 923 of file FIRational.cs.
uint IConvertible. FreeImageAPI.FIRational.ToUInt32 | ( | IFormatProvider | provider | ) |
Definition at line 923 of file FIRational.cs.
ulong IConvertible. FreeImageAPI.FIRational.ToUInt64 | ( | IFormatProvider | provider | ) |
Definition at line 928 of file FIRational.cs.
ulong IConvertible. FreeImageAPI.FIRational.ToUInt64 | ( | IFormatProvider | provider | ) |
Definition at line 928 of file FIRational.cs.
int FreeImageAPI.FIRational.Truncate | ( | ) |
int FreeImageAPI.FIRational.Truncate | ( | ) |
|
static |
Represents the smallest positive FIRational value greater than zero. This field is constant.
Definition at line 79 of file FIRational.cs.
|
static |
Represents the largest possible value of FIRational. This field is constant.
Definition at line 69 of file FIRational.cs.
|
static |
Represents the smallest possible value of FIRational. This field is constant.
Definition at line 74 of file FIRational.cs.
|
get |
The denominator of the fraction.
Definition at line 168 of file FIRational.cs.
|
get |
Returns whether the fraction is representing an integer value.
Definition at line 185 of file FIRational.cs.
|
get |
The numerator of the fraction.
Definition at line 160 of file FIRational.cs.