A fixed-point number. 16 lower bits are used for the decimal part, 48 for the integral part. More...
Classes | |
class | Comparer |
Compares FPs. More... | |
class | EqualityComparer |
Equality comparer for FPs. More... | |
class | Raw |
Holds FP constants in raw (long) form. More... | |
Public Member Functions | |
Int32 | CompareTo (FP other) |
Compares this instance of FP to another instance and returns an integer that indicates whether this instance is less than, equal to, or greater than the other instance. More... | |
Boolean | Equals (FP other) |
Determines whether the current instance is equal to another instance of FP. More... | |
override Boolean | Equals (Object obj) |
Determines whether the current instance of FP is equal to the specified object. More... | |
override Int32 | GetHashCode () |
Computes the hash code for the current instance of the FP struct. More... | |
override string | ToString () |
Returns a string representation of the current FP value. More... | |
String | ToString (string format) |
Returns a string that represents the FP. More... | |
String | ToStringInternal () |
Returns a string that represents the FP using a custom format. More... | |
string | ToStringLegacy () |
Converts the value of the current FP object to its equivalent string representation using the legacy format. More... | |
Static Public Member Functions | |
static FP | FromDouble_UNSAFE (double value) |
Converts a double value to an instance of the FP, with rounding towards zero.. To round towards nearest representable FP, use FromRoundedDouble_UNSAFE. This method is marked as unsafe because it is not deterministic. More... | |
static FP | FromFloat_UNSAFE (Single value) |
Converts a single-precision floating-point value to an instance of the FP, with rounding towards zero.. To round towards nearest representable FP, use FromRoundedFloat_UNSAFE. This method is marked as unsafe because it is not deterministic. More... | |
static FP | FromRaw (Int64 value) |
Converts a raw integer value to an instance of FP. More... | |
static FP | FromRoundedDouble_UNSAFE (double value) |
Converts a double value to an instance of the FP, with rounding to the nearest representable FP. More... | |
static FP | FromRoundedFloat_UNSAFE (float value) |
Converts a single-precision floating-point value to an instance of the FP, with rounding to the nearest representable FP. This method is marked as unsafe because it is not deterministic. More... | |
static FP | FromString (String value) |
Converts a string representation of a fixed-point number to an instance of the FP struct. More... | |
static FP | FromString_UNSAFE (String value) |
Creates an instance of FP from a string representation of a float value. This method is marked as unsafe because it is not deterministic. More... | |
static | operator Double (FP value) |
Converts an FP value to a double value. More... | |
static implicit | operator FP (Byte value) |
Implicit conversion operator for converting a Byte value to an FP (Fixed Point) value. More... | |
static implicit | operator FP (double value) |
Purposefully throws an exception when trying to cast from a double to an FP. More... | |
static implicit | operator FP (float value) |
Purposefully throws an exception when trying to cast from a float to an FP. More... | |
static implicit | operator FP (Int16 value) |
Converts an integer value to an FP value. More... | |
static implicit | operator FP (Int32 value) |
Converts an integer value to an FP value. More... | |
static implicit | operator FP (SByte value) |
Implicitly converts a signed byte value to an instance of the FP struct. More... | |
static implicit | operator FP (UInt16 value) |
Converts an integer value to an FP value. More... | |
static implicit | operator FP (UInt32 value) |
Converts an integer value to an FP value. More... | |
static | operator Int32 (FP value) |
Converts an integer value to an FP value. More... | |
static | operator Int64 (FP value) |
Converts an FP value to an integer value. More... | |
static | operator Single (FP value) |
Converts an FP value to a float value. More... | |
static Boolean | operator!= (FP a, FP b) |
Compares two FP values for inequality. More... | |
static Boolean | operator!= (FP a, Int32 b) |
Compares an FP value with an integer value for inequality. More... | |
static Boolean | operator!= (Int32 a, FP b) |
Compares an integer value with an FP value for inequality. More... | |
static FP | operator% (FP a, FP b) |
Modulo operator for FP values. More... | |
static FP | operator% (FP a, FPHighPrecisionDivisor b) |
Modulo operator for FP and high precision divisor. More... | |
static FP | operator% (FP a, Int32 b) |
Modulo operator for FP and integer values. More... | |
static FP | operator% (Int32 a, FP b) |
Modulo operator for integer and FP values. More... | |
static FP | operator* (FP a, FP b) |
Represents the operator to multiply two FP values. More... | |
static FP | operator* (FP a, Int32 b) |
Represents the operator for multiplying a floating-point value by an integer value. More... | |
static FP | operator* (Int32 a, FP b) |
Multiplies an integer value by an FP value. More... | |
static FP | operator+ (FP a) |
Converts the value to its absolute version. More... | |
static FP | operator+ (FP a, FP b) |
Represents the operator to add two FP values. More... | |
static FP | operator+ (FP a, Int32 b) |
Overloads the addition operator to add an integer value to an FP value. More... | |
static FP | operator+ (Int32 a, FP b) |
Represents the operator overloading for adding an integer and an FP value. More... | |
static FP | operator- (FP a) |
Negates the value. More... | |
static FP | operator- (FP a, FP b) |
Subtracts two FP (fixed point) values. More... | |
static FP | operator- (FP a, Int32 b) |
Subtracts an integer value from an FP value. More... | |
static FP | operator- (Int32 a, FP b) |
Represents an overloaded operator for negating the value of an integer. More... | |
static FP | operator/ (FP a, FP b) |
Represents an operator to perform division on two FP (fixed point) numbers. More... | |
static FP | operator/ (FP a, FPHighPrecisionDivisor b) |
Divides an FP value by a high precision divisor. More... | |
static FP | operator/ (FP a, Int32 b) |
Divides an FP value by an integer value. More... | |
static FP | operator/ (Int32 a, FP b) |
This operator takes an integer value (a ) and an FP value (b ) and returns the result of the division of a by b . More... | |
static Boolean | operator< (FP a, FP b) |
Represents the operator to compare two FP values. More... | |
static Boolean | operator< (FP a, Int32 b) |
Represents the operator to compare an FP value with an integer value. More... | |
static Boolean | operator< (Int32 a, FP b) |
Represents the operator to compare an integer value with an FP value. More... | |
static Boolean | operator<= (FP a, FP b) |
Represents the operator to compare two FP values. More... | |
static Boolean | operator<= (FP a, Int32 b) |
Code that defines the operator for less than or equal to comparison between a FP (Fixed Point) value and an integer value. More... | |
static Boolean | operator<= (Int32 a, FP b) |
Code that defines the operator for less than or equal to comparison between an integer value and a FP (Fixed Point) value. More... | |
static Boolean | operator== (FP a, FP b) |
Compares two FP values for equality. More... | |
static Boolean | operator== (FP a, Int32 b) |
Compares an FP value with an integer value for equality. More... | |
static Boolean | operator== (Int32 a, FP b) |
Compares an integer value with an FP value for equality. More... | |
static Boolean | operator> (FP a, FP b) |
Represents the operator to compare two FP values. More... | |
static Boolean | operator> (FP a, Int32 b) |
Represents the operator to compare an FP value with an integer value. More... | |
static Boolean | operator> (Int32 a, FP b) |
Represents the operator to compare an integer value with an FP value. More... | |
static Boolean | operator>= (FP a, FP b) |
Represents the operator to compare two FP values. More... | |
static Boolean | operator>= (FP a, Int32 b) |
Represents the operator to compare an FP value with an integer value. More... | |
static Boolean | operator>= (Int32 a, FP b) |
Represents the operator to compare an integer value with an FP value. More... | |
static unsafe void | Serialize (void *ptr, IDeterministicFrameSerializer serializer) |
Serializes the given pointer using the provided serializer. More... | |
Public Attributes | |
Int64 | RawValue |
The raw integer value of the fixed-point number. More... | |
Static Public Attributes | |
const int | Bits = sizeof(long) * 8 |
The size in bits of the fixed-point number. (64) More... | |
const long | MulRound = (1 << (Precision - 1)) |
Represents the value of the rounding constant used in Fixed Point multiplication. More... | |
const int | MulShift = Precision |
Represents the bit shift used in Fixed Point multiplication. More... | |
const int | Precision = FPLut.PRECISION |
Represents the precision used for Fixed Point calculations. More... | |
const long | RAW_ONE = FPLut.ONE |
The value of one as a fixed-point number. More... | |
const long | RAW_ZERO = 0 |
Represents a constant that holds the raw value of zero for the FP struct. More... | |
const int | SIZE = 8 |
Represents the size of a variable in bytes. More... | |
Properties | |
static FP | _0 [get] |
FP constant representing the number 0. More... | |
static FP | _0_01 [get] |
FP constant representing the number 0.01. More... | |
static FP | _0_02 [get] |
FP constant representing the number 0.02. More... | |
static FP | _0_03 [get] |
FP constant representing the number 0.03. More... | |
static FP | _0_04 [get] |
FP constant representing the number 0.04. More... | |
static FP | _0_05 [get] |
FP constant representing the number 0.05. More... | |
static FP | _0_10 [get] |
FP constant representing the number 0.10. More... | |
static FP | _0_20 [get] |
FP constant representing the number 0.20. More... | |
static FP | _0_25 [get] |
FP constant representing the number 0.25. More... | |
static FP | _0_33 [get] |
FP constant representing the number 0.33. More... | |
static FP | _0_50 [get] |
FP constant representing the number 0.50. More... | |
static FP | _0_75 [get] |
FP constant representing the number 0.75. More... | |
static FP | _0_99 [get] |
FP constant representing the number 0.99. More... | |
static FP | _1 [get] |
FP constant representing the number 1. More... | |
static FP | _10 [get] |
FP constant representing the number 10. More... | |
static FP | _100 [get] |
FP constant representing the number 100. More... | |
static FP | _1000 [get] |
FP constant representing the number 1000. More... | |
static FP | _10000 [get] |
FP constant representing the number 10000. More... | |
static FP | _180 [get] |
FP constant representing the number 180. More... | |
static FP | _1_01 [get] |
FP constant representing the number 1.01. More... | |
static FP | _1_02 [get] |
FP constant representing the number 1.02. More... | |
static FP | _1_03 [get] |
FP constant representing the number 1.03. More... | |
static FP | _1_04 [get] |
FP constant representing the number 1.04. More... | |
static FP | _1_05 [get] |
FP constant representing the number 1.05. More... | |
static FP | _1_10 [get] |
FP constant representing the number 1.10. More... | |
static FP | _1_20 [get] |
FP constant representing the number 1.20. More... | |
static FP | _1_25 [get] |
FP constant representing the number 1.25. More... | |
static FP | _1_33 [get] |
FP constant representing the number 1.33. More... | |
static FP | _1_50 [get] |
FP constant representing the number 1.50. More... | |
static FP | _1_75 [get] |
FP constant representing the number 1.75. More... | |
static FP | _1_99 [get] |
FP constant representing the number 1.99. More... | |
static FP | _2 [get] |
FP constant representing the number 2. More... | |
static FP | _200 [get] |
FP constant representing the number 200. More... | |
static FP | _3 [get] |
FP constant representing the number 3. More... | |
static FP | _360 [get] |
FP constant representing the number 360. More... | |
static FP | _4 [get] |
FP constant representing the number 4. More... | |
static FP | _5 [get] |
FP constant representing the number 5. More... | |
static FP | _6 [get] |
FP constant representing the number 6. More... | |
static FP | _7 [get] |
FP constant representing the number 7. More... | |
static FP | _8 [get] |
FP constant representing the number 8. More... | |
static FP | _9 [get] |
FP constant representing the number 9. More... | |
static FP | _99 [get] |
FP constant representing the number 99. More... | |
Double | AsDouble [get] |
Converts to double. More... | |
Single | AsFloat [get] |
Converts to float. More... | |
Int32 | AsInt [get] |
Return integral part as int. More... | |
Int64 | AsLong [get] |
Returns integral part as long. More... | |
double | AsRoundedDouble [get] |
Converts to double. The returned value is not exact, but rather the one that has the least significant digits given FP's precision. More... | |
Int16 | AsShort [get] |
Return integral part as int. More... | |
static FP | Deg2Rad [get] |
Degrees-to-radians conversion constant. More... | |
static FP | E [get] |
FP constant representing the Euler Number constant. More... | |
static FP | EN1 [get] |
FP constant representing the epsilon value EN1. More... | |
static FP | EN2 [get] |
FP constant representing the epsilon value EN2. More... | |
static FP | EN3 [get] |
FP constant representing the epsilon value EN3. More... | |
static FP | EN4 [get] |
FP constant representing the epsilon value EN4. More... | |
static FP | EN5 [get] |
FP constant representing the epsilon value EN5. More... | |
static FP | Epsilon [get] |
FP constant representing Epsilon EN3. More... | |
static FP | Log2_10 [get] |
FP constant representing Log(10). More... | |
static FP | Log2_E [get] |
FP constant representing Log(E). More... | |
static FP | MaxValue [get] |
Maximum FP value, but values outside of UseableMin and UseableMax (inclusive) can overflow when multiplied. More... | |
static FP | Minus_1 [get] |
FP constant representing the number -1. More... | |
static FP | MinValue [get] |
Minimum FP value, but values outside of UseableMin and UseableMax (inclusive) can overflow when multiplied. More... | |
static FP | Pi [get] |
Pi number. More... | |
static FP | Pi3Over4 [get] |
3 * Pi / 4. More... | |
static FP | Pi4Over3 [get] |
4 * Pi / 3. More... | |
static FP | PiInv [get] |
1/Pi. More... | |
static FP | PiOver2 [get] |
Pi / 2. More... | |
static FP | PiOver2Inv [get] |
2 / Pi. More... | |
static FP | PiOver4 [get] |
Pi / 4. More... | |
static FP | PiTimes2 [get] |
2 * Pi. More... | |
static FP | Rad2Deg [get] |
Radians-to-degrees conversion constant. More... | |
static FP | Rad_180 [get] |
FP constant representing 180 degrees in radian. More... | |
static FP | Rad_22_50 [get] |
FP constant representing 22.5 degrees in radian. More... | |
static FP | Rad_360 [get] |
FP constant representing 360 degrees in radian. More... | |
static FP | Rad_45 [get] |
FP constant representing 45 degrees in radian. More... | |
static FP | Rad_90 [get] |
FP constant representing 90 degrees in radian. More... | |
static FP | SmallestNonZero [get] |
The smallest FP unit that is not 0. More... | |
static FP | UseableMax [get] |
Represents the highest FP number that can be multiplied with itself and not cause an overflow (exceeding long range). More... | |
static FP | UseableMin [get] |
Represents the highest negative FP number that can be multiplied with itself and not cause an overflow (exceeding long range). More... | |
A fixed-point number. 16 lower bits are used for the decimal part, 48 for the integral part.
It provides various methods for performing mathematical operations and converting between different data types.
However, a majority of internal code and the multiplication operator perform fast multiplication, where the result can use at most 32 bits for the integral part and overflows are not detected. This means that you should stay in System.Int16 range.
The precision of the decimal part is 5 digits. The decimal fraction normalizer is 1E5. The size of an FP object is 8 bytes. The raw value of one is equal to FPLut.ONE. The raw value of zero is 0. The precision value is equal to FPLut.PRECISION. The number of bits in an FP object is equal to the size of a long (64 bits). The MulRound constant is 0. The MulShift constant is equal to the precision value. The MulShiftTrunc constant is equal to the precision value. The UsesRoundedConstants constant is either true
or false
, depending on the value of PHOTONDETERMINISTIC_FP_OLD_CONSTANTS.
true
|
inlinestatic |
Serializes the given pointer using the provided serializer.
ptr | The pointer to the FP object to be serialized. |
serializer | The serializer used for serialization. |
|
inline |
Compares this instance of FP to another instance and returns an integer that indicates whether this instance is less than, equal to, or greater than the other instance.
other | The other instance to compare. |
|
inline |
Determines whether the current instance is equal to another instance of FP.
other | The instance to compare with the current instance. |
true
if the current instance is equal to the other instance; otherwise, false
.
|
inline |
Determines whether the current instance of FP is equal to the specified object.
obj | The object to compare with the current instance of FP. |
true
if the specified object is equal to the current instance of FP; otherwise, false
.
|
inline |
Computes the hash code for the current instance of the FP struct.
|
inline |
Returns a string representation of the current FP value.
|
inline |
Converts the value of the current FP object to its equivalent string representation using the legacy format.
|
inline |
Returns a string that represents the FP.
|
inline |
Returns a string that represents the FP using a custom format.
|
inlinestatic |
Converts a double value to an instance of the FP, with rounding to the nearest representable FP.
value | The rounded double value to convert. |
|
inlinestatic |
Converts a double value to an instance of the FP, with rounding towards zero.. To round towards nearest representable FP, use FromRoundedDouble_UNSAFE. This method is marked as unsafe because it is not deterministic.
value | The double value to convert. |
|
inlinestatic |
Converts a single-precision floating-point value to an instance of the FP, with rounding to the nearest representable FP. This method is marked as unsafe because it is not deterministic.
value | The value to convert. |
|
inlinestatic |
Converts a single-precision floating-point value to an instance of the FP, with rounding towards zero.. To round towards nearest representable FP, use FromRoundedFloat_UNSAFE. This method is marked as unsafe because it is not deterministic.
value | The value to convert. |
|
inlinestatic |
Converts a raw integer value to an instance of FP.
value | The raw integer value to convert. |
|
inlinestatic |
Creates an instance of FP from a string representation of a float value. This method is marked as unsafe because it is not deterministic.
value | The string representation of the float value. |
|
inlinestatic |
Converts a string representation of a fixed-point number to an instance of the FP struct.
value |
FormatException |
Converts the value to its absolute version.
FP.Operators.cs
Represents the operator to add two FP values.
a | The first FP value. |
b | The second FP value. |
Overloads the addition operator to add an integer value to an FP value.
a | The FP value. |
b | The integer value to add. |
Represents the operator overloading for adding an integer and an FP value.
a | The integer value. |
b | The FP value. |
Subtracts two FP (fixed point) values.
a | The first FP value. |
b | The second FP value. |
Subtracts an integer value from an FP value.
a | The FP value. |
b | The integer value. |
Represents an overloaded operator for negating the value of an integer.
a | The integer value to be negated. |
b | The FP value to subtract from. |
This operator subtracts the FP value from the negated integer value by shifting the integer value to the left by the precision of FP, then subtracting the raw value of FP from it. The result is then returned as a new FP value.
Represents the operator to multiply two FP values.
a | The first FP value. |
b | The Second FP value |
Represents the operator for multiplying a floating-point value by an integer value.
a | The floating-point value. |
b | The integer value. |
Multiplies an integer value by an FP value.
Represents an operator to perform division on two FP (fixed point) numbers.
a | The dividend. |
b | The divisor. |
Divides an FP value by an integer value.
a | The first FP value. |
b | The second Int32 value. |
This operator takes an integer value (a
) and an FP
value (b
) and returns the result of the division of a
by b
.
a | The integer value to be divided. |
b | The FP value to divide by. |
FP
value representing the result of the division of a
by b
.
|
inlinestatic |
Divides an FP value by a high precision divisor.
a | The FP value. |
b | The HighPrecisionDivisor. |
Modulo operator for FP values.
Modulo operator for FP and integer values.
a | The FP value. |
b | The integer value. |
Modulo operator for integer and FP values.
a | The integer value. |
b | The FP value. |
|
inlinestatic |
Modulo operator for FP and high precision divisor.
a | The FP value. |
b | The high precision divisor. |
Represents the operator to compare two FP values.
a | The first FP value. |
b | The second FP value. |
|
inlinestatic |
Represents the operator to compare an FP value with an integer value.
a | The FP value. |
b | The integer value. |
|
inlinestatic |
Represents the operator to compare an integer value with an FP value.
a | The integer value. |
b | The FP value. |
Represents the operator to compare two FP values.
a | The first FP value. |
b | The second FP value. |
|
inlinestatic |
Code that defines the operator for less than or equal to comparison between a FP (Fixed Point) value and an integer value.
a | The FP value to compare |
b | The integer value to compare |
true
if the FP value is less than or equal to the integer value, otherwise false
|
inlinestatic |
Code that defines the operator for less than or equal to comparison between an integer value and a FP (Fixed Point) value.
a | The integer value to compare |
b | The FP value to compare |
true
if the integer value is less than or equal to the FP value, otherwise false
Represents the operator to compare two FP values.
a | The first FP value. |
b | The second FP value. |
true
if the first value is greater than the second, otherwise false
.
|
inlinestatic |
Represents the operator to compare an FP value with an integer value.
a | The FP value. |
b | The integer value. |
true
if the FP value is greater than the integer value, otherwise false
.
|
inlinestatic |
Represents the operator to compare an integer value with an FP value.
a | The integer value. |
b | The FP value. |
true
if the integer value is greater than the FP value, otherwise false
.Represents the operator to compare two FP values.
a | The first FP value. |
b | The second FP value. |
true
if the first value is greater than or equal to the second, otherwise false
.
|
inlinestatic |
Represents the operator to compare an FP value with an integer value.
a | The FP value. |
b | The integer value. |
true
if the FP value is greater than or equal to the integer value, otherwise false
.
|
inlinestatic |
Represents the operator to compare an integer value with an FP value.
a | The integer value. |
b | The FP value. |
true
if the integer value is greater than or equal to the FP value, otherwise false
.Compares two FP values for equality.
a | The first FP value. |
b | The second FP value. |
true
if the two values are equal, otherwise false
.
|
inlinestatic |
Compares an FP value with an integer value for equality.
a | The FP value. |
b | The integer value. |
true
if the two values are equal, otherwise false
.
|
inlinestatic |
Compares an integer value with an FP value for equality.
a | The integer value. |
b | The FP value. |
true
if the two values are equal, otherwise false
.Compares two FP values for inequality.
a | The first FP value. |
b | The second FP value. |
true
if the two values are not equal, otherwise false
.
|
inlinestatic |
Compares an FP value with an integer value for inequality.
a | The FP value. |
b | The integer value. |
true
if the two values are not equal, otherwise false
.
|
inlinestatic |
Compares an integer value with an FP value for inequality.
a | The integer value. |
b | The FP value. |
true
if the two values are not equal, otherwise false
.
|
inlinestatic |
Converts an integer value to an FP value.
value | The integer value to convert. |
|
inlinestatic |
Converts an integer value to an FP value.
value | The integer value to convert. |
|
inlinestatic |
Converts an integer value to an FP value.
value | The integer value to convert. |
|
inlinestatic |
Converts an integer value to an FP value.
value | The integer value to convert. |
|
inlinestatic |
Implicitly converts a signed byte value to an instance of the FP struct.
value | The signed byte value to be converted. |
|
inlinestatic |
Implicit conversion operator for converting a Byte value to an FP (Fixed Point) value.
value | The Byte value to be converted. |
|
inlineexplicitstatic |
Converts an integer value to an FP value.
value | The integer value to convert. |
|
inlineexplicitstatic |
Converts an FP value to an integer value.
value | The FP value to convert. |
|
inlineexplicitstatic |
Converts an FP value to a float value.
value | The FP value to convert. |
|
inlineexplicitstatic |
Converts an FP value to a double value.
value | The FP value to convert. |
|
static |
Purposefully throws an exception when trying to cast from a float to an FP.
value |
InvalidOperationException |
|
static |
Purposefully throws an exception when trying to cast from a double to an FP.
value |
InvalidOperationException |
|
static |
Represents the size of a variable in bytes.
The SIZE constant is used to determine the size of a variable in bytes.
|
static |
The value of one as a fixed-point number.
|
static |
Represents a constant that holds the raw value of zero for the FP struct.
|
static |
Represents the precision used for Fixed Point calculations.
The Precision constant is used to determine the number of decimal places in Fixed Point calculations.
|
static |
The size in bits of the fixed-point number. (64)
|
static |
Represents the value of the rounding constant used in Fixed Point multiplication.
|
static |
Represents the bit shift used in Fixed Point multiplication.
Int64 Photon.Deterministic.FP.RawValue |
The raw integer value of the fixed-point number.
|
staticget |
The smallest FP unit that is not 0.
Closest double: 1.52587890625E-05
|
staticget |
Minimum FP value, but values outside of UseableMin and UseableMax (inclusive) can overflow when multiplied.
Closest double: -140737488355328
|
staticget |
Maximum FP value, but values outside of UseableMin and UseableMax (inclusive) can overflow when multiplied.
Closest double: 140737488355328
|
staticget |
Represents the highest negative FP number that can be multiplied with itself and not cause an overflow (exceeding long range).
Closest double: -32768
|
staticget |
Represents the highest FP number that can be multiplied with itself and not cause an overflow (exceeding long range).
Closest double: 32767.9999847412
|
staticget |
Pi number.
Closest double: 3.14158630371094
|
staticget |
1/Pi.
Closest double: 0.318313598632813
|
staticget |
2 * Pi.
Closest double: 6.28318786621094
|
staticget |
Pi / 2.
Closest double: 1.57080078125
|
staticget |
2 / Pi.
Closest double: 0.636627197265625
|
staticget |
Pi / 4.
Closest double: 0.785400390625
|
staticget |
3 * Pi / 4.
Closest double: 2.356201171875
|
staticget |
4 * Pi / 3.
Closest double: 4.18879699707031
|
staticget |
Degrees-to-radians conversion constant.
Closest double: 0.0174560546875
|
staticget |
Radians-to-degrees conversion constant.
Closest double: 57.2957763671875
|
staticget |
FP constant representing the number 0.
Closest double: 0
|
staticget |
FP constant representing the number 1.
Closest double: 1
|
staticget |
FP constant representing the number 2.
Closest double: 2
|
staticget |
FP constant representing the number 3.
Closest double: 3
|
staticget |
FP constant representing the number 4.
Closest double: 4
|
staticget |
FP constant representing the number 5.
Closest double: 5
|
staticget |
FP constant representing the number 6.
Closest double: 6
|
staticget |
FP constant representing the number 7.
Closest double: 7
|
staticget |
FP constant representing the number 8.
Closest double: 8
|
staticget |
FP constant representing the number 9.
Closest double: 9
|
staticget |
FP constant representing the number 10.
Closest double: 10
|
staticget |
FP constant representing the number 99.
Closest double: 99
|
staticget |
FP constant representing the number 100.
Closest double: 100
|
staticget |
FP constant representing the number 180.
Closest double: 180
|
staticget |
FP constant representing the number 200.
Closest double: 200
|
staticget |
FP constant representing the number 360.
Closest double: 360
|
staticget |
FP constant representing the number 1000.
Closest double: 1000
|
staticget |
FP constant representing the number 10000.
Closest double: 10000
|
staticget |
FP constant representing the number 0.01.
Closest double: 0.0099945068359375
|
staticget |
FP constant representing the number 0.02.
Closest double: 0.0200042724609375
|
staticget |
FP constant representing the number 0.03.
Closest double: 0.029998779296875
|
staticget |
FP constant representing the number 0.04.
Closest double: 0.0399932861328125
|
staticget |
FP constant representing the number 0.05.
Closest double: 0.0500030517578125
|
staticget |
FP constant representing the number 0.10.
Closest double: 0.100006103515625
|
staticget |
FP constant representing the number 0.20.
Closest double: 0.199996948242188
|
staticget |
FP constant representing the number 0.25.
Closest double: 0.25
|
staticget |
FP constant representing the number 0.50.
Closest double: 0.5
|
staticget |
FP constant representing the number 0.75.
Closest double: 0.75
|
staticget |
FP constant representing the number 0.33.
Closest double: 0.333328247070313
|
staticget |
FP constant representing the number 0.99.
Closest double: 0.990005493164063
|
staticget |
FP constant representing the number -1.
Closest double: -1
|
staticget |
FP constant representing 360 degrees in radian.
Closest double: 6.28318786621094
|
staticget |
FP constant representing 180 degrees in radian.
Closest double: 3.14158630371094
|
staticget |
FP constant representing 90 degrees in radian.
Closest double: 1.57080078125
|
staticget |
FP constant representing 45 degrees in radian.
Closest double: 0.785400390625
|
staticget |
FP constant representing 22.5 degrees in radian.
Closest double: 0.3927001953125
|
staticget |
FP constant representing the number 1.01.
Closest double: 1.00999450683594
|
staticget |
FP constant representing the number 1.02.
Closest double: 1.02000427246094
|
staticget |
FP constant representing the number 1.03.
Closest double: 1.02999877929688
|
staticget |
FP constant representing the number 1.04.
Closest double: 1.03999328613281
|
staticget |
FP constant representing the number 1.05.
Closest double: 1.05000305175781
|
staticget |
FP constant representing the number 1.10.
Closest double: 1.10000610351563
|
staticget |
FP constant representing the number 1.20.
Closest double: 1.19999694824219
|
staticget |
FP constant representing the number 1.25.
Closest double: 1.25
|
staticget |
FP constant representing the number 1.50.
Closest double: 1.5
|
staticget |
FP constant representing the number 1.75.
Closest double: 1.75
|
staticget |
FP constant representing the number 1.33.
Closest double: 1.33332824707031
|
staticget |
FP constant representing the number 1.99.
Closest double: 1.99000549316406
|
staticget |
FP constant representing the epsilon value EN1.
Closest double: 0.100006103515625
|
staticget |
FP constant representing the epsilon value EN2.
Closest double: 0.0099945068359375
|
staticget |
FP constant representing the epsilon value EN3.
Closest double: 0.001007080078125
|
staticget |
FP constant representing the epsilon value EN4.
Closest double: 0.0001068115234375
|
staticget |
FP constant representing the epsilon value EN5.
Closest double: 1.52587890625E-05
|
staticget |
FP constant representing Epsilon EN3.
Closest double: 0.001007080078125
|
staticget |
FP constant representing the Euler Number constant.
Closest double: 2.71827697753906
|
staticget |
FP constant representing Log(E).
Closest double: 1.44268798828125
|
staticget |
FP constant representing Log(10).
Closest double: 3.32192993164063
|
get |
Returns integral part as long.
|
get |
Return integral part as int.
|
get |
Return integral part as int.
|
get |
Converts to float.
|
get |
Converts to double. The returned value is not exact, but rather the one that has the least significant digits given FP's precision.
|
get |
Converts to double.