A fixed-point number. 16 lower bits are used for the decimal part, 48 for the integral part. More...
Properties | |
static FP | _0 [get] |
Closest double: 0 More... | |
static FP | _0_01 [get] |
Closest double: 0.0099945068359375 More... | |
static FP | _0_02 [get] |
Closest double: 0.019989013671875 More... | |
static FP | _0_03 [get] |
Closest double: 0.0299835205078125 More... | |
static FP | _0_04 [get] |
Closest double: 0.03997802734375 More... | |
static FP | _0_05 [get] |
Closest double: 0.0499725341796875 More... | |
static FP | _0_10 [get] |
Closest double: 0.0999908447265625 More... | |
static FP | _0_20 [get] |
Closest double: 0.199996948242188 More... | |
static FP | _0_25 [get] |
Closest double: 0.25 More... | |
static FP | _0_33 [get] |
Closest double: 0.333328247070313 More... | |
static FP | _0_50 [get] |
Closest double: 0.5 More... | |
static FP | _0_75 [get] |
Closest double: 0.75 More... | |
static FP | _0_99 [get] |
Closest double: 0.990005493164063 More... | |
static FP | _1 [get] |
Closest double: 1 More... | |
static FP | _10 [get] |
Closest double: 10 More... | |
static FP | _100 [get] |
Closest double: 100 More... | |
static FP | _1000 [get] |
Closest double: 1000 More... | |
static FP | _10000 [get] |
Closest double: 10000 More... | |
static FP | _1_01 [get] |
Closest double: 1.00999450683594 More... | |
static FP | _1_02 [get] |
Closest double: 1.01998901367188 More... | |
static FP | _1_03 [get] |
Closest double: 1.02999877929688 More... | |
static FP | _1_04 [get] |
Closest double: 1.03999328613281 More... | |
static FP | _1_05 [get] |
Closest double: 1.04998779296875 More... | |
static FP | _1_10 [get] |
Closest double: 1.09999084472656 More... | |
static FP | _1_20 [get] |
Closest double: 1.19999694824219 More... | |
static FP | _1_25 [get] |
Closest double: 1.25 More... | |
static FP | _1_33 [get] |
Closest double: 1.33332824707031 More... | |
static FP | _1_50 [get] |
Closest double: 1.5 More... | |
static FP | _1_75 [get] |
Closest double: 1.75 More... | |
static FP | _1_99 [get] |
Closest double: 1.99000549316406 More... | |
static FP | _2 [get] |
Closest double: 2 More... | |
static FP | _200 [get] |
Closest double: 200 More... | |
static FP | _3 [get] |
Closest double: 3 More... | |
static FP | _4 [get] |
Closest double: 4 More... | |
static FP | _5 [get] |
Closest double: 5 More... | |
static FP | _6 [get] |
Closest double: 6 More... | |
static FP | _7 [get] |
Closest double: 7 More... | |
static FP | _8 [get] |
Closest double: 8 More... | |
static FP | _9 [get] |
Closest double: 9 More... | |
static FP | _99 [get] |
Closest double: 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... | |
Int16 | AsShort [get] |
Return integral part as int. More... | |
static FP | Deg2Rad [get] |
Closest double: 0.0174407958984375 More... | |
static FP | E [get] |
Closest double: 2.71827697753906 More... | |
static FP | EN1 [get] |
Closest double: 0.0999908447265625 More... | |
static FP | EN2 [get] |
Closest double: 0.0099945068359375 More... | |
static FP | EN3 [get] |
Closest double: 0.0009918212890625 More... | |
static FP | EN4 [get] |
Closest double: 9.1552734375E-05 More... | |
static FP | EN5 [get] |
Closest double: 0 More... | |
static FP | Epsilon [get] |
Closest double: 0.0009918212890625 More... | |
static FP | Log2_10 [get] |
Closest double: 3.32191467285156 More... | |
static FP | Log2_E [get] |
Closest double: 1.44268798828125 More... | |
static FP | MaxValue [get] |
Closest double: 140737488355328 More... | |
static FP | Minus_1 [get] |
Closest double: -1 More... | |
static FP | MinValue [get] |
Closest double: -140737488355328 More... | |
static FP | Pi [get] |
Pi number. More... | |
static FP | Pi3Over4 [get] |
3 * Pi / 4. 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] |
Closest double: 57.2957763671875 More... | |
static FP | Rad_180 [get] |
Closest double: 3.14158630371094 More... | |
static FP | Rad_22_50 [get] |
Closest double: 0.392684936523438 More... | |
static FP | Rad_45 [get] |
Closest double: 0.785385131835938 More... | |
static FP | Rad_90 [get] |
Closest double: 1.57078552246094 More... | |
static FP | SmallestNonZero [get] |
Closest double: 1.52587890625E-05 More... | |
static FP | UseableMax [get] |
All values between UseableMin and UseableMax (inclusive) are guaranteed not to overflow when multiplicated. More... | |
static FP | UseableMin [get] |
All values between UseableMin and UseableMax (inclusive) are guaranteed not to overflow when multiplicated. More... | |
A fixed-point number. 16 lower bits are used for the decimal part, 48 for the integral part.
However, 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.
|
staticget |
Closest double: 1.52587890625E-05
|
staticget |
Closest double: -140737488355328
|
staticget |
Closest double: 140737488355328
|
staticget |
All values between UseableMin and UseableMax (inclusive) are guaranteed not to overflow when multiplicated.
Closest double: -32768
|
staticget |
All values between UseableMin and UseableMax (inclusive) are guaranteed not to overflow when multiplicated.
Closest double: 32767.9999847412
|
staticget |
Pi number.
Closest double: 3.14158630371094
|
staticget |
1/Pi.
Closest double: 0.31829833984375
|
staticget |
2 * Pi.
Closest double: 6.28317260742188
|
staticget |
Pi / 2.
Closest double: 1.57078552246094
|
staticget |
2 / Pi.
Closest double: 0.636611938476563
|
staticget |
Pi / 4.
Closest double: 0.785385131835938
|
staticget |
3 * Pi / 4.
Closest double: 2.35618591308594
|
staticget |
Closest double: 0.0174407958984375
|
staticget |
Closest double: 57.2957763671875
|
staticget |
Closest double: 0
|
staticget |
Closest double: 1
|
staticget |
Closest double: 2
|
staticget |
Closest double: 3
|
staticget |
Closest double: 4
|
staticget |
Closest double: 5
|
staticget |
Closest double: 6
|
staticget |
Closest double: 7
|
staticget |
Closest double: 8
|
staticget |
Closest double: 9
|
staticget |
Closest double: 10
|
staticget |
Closest double: 99
|
staticget |
Closest double: 100
|
staticget |
Closest double: 200
|
staticget |
Closest double: 1000
|
staticget |
Closest double: 10000
|
staticget |
Closest double: 0.0099945068359375
|
staticget |
Closest double: 0.019989013671875
|
staticget |
Closest double: 0.0999908447265625
|
staticget |
Closest double: 0.199996948242188
|
staticget |
Closest double: 0.25
|
staticget |
Closest double: 0.5
|
staticget |
Closest double: 0.75
|
staticget |
Closest double: 0.0299835205078125
|
staticget |
Closest double: 0.03997802734375
|
staticget |
Closest double: 0.0499725341796875
|
staticget |
Closest double: 0.333328247070313
|
staticget |
Closest double: 0.990005493164063
|
staticget |
Closest double: -1
|
staticget |
Closest double: 3.14158630371094
|
staticget |
Closest double: 1.57078552246094
|
staticget |
Closest double: 0.785385131835938
|
staticget |
Closest double: 0.392684936523438
|
staticget |
Closest double: 1.00999450683594
|
staticget |
Closest double: 1.01998901367188
|
staticget |
Closest double: 1.02999877929688
|
staticget |
Closest double: 1.03999328613281
|
staticget |
Closest double: 1.04998779296875
|
staticget |
Closest double: 1.09999084472656
|
staticget |
Closest double: 1.19999694824219
|
staticget |
Closest double: 1.25
|
staticget |
Closest double: 1.5
|
staticget |
Closest double: 1.75
|
staticget |
Closest double: 1.33332824707031
|
staticget |
Closest double: 1.99000549316406
|
staticget |
Closest double: 0.0999908447265625
|
staticget |
Closest double: 0.0099945068359375
|
staticget |
Closest double: 0.0009918212890625
|
staticget |
Closest double: 9.1552734375E-05
|
staticget |
Closest double: 0
|
staticget |
Closest double: 0.0009918212890625
|
staticget |
Closest double: 2.71827697753906
|
staticget |
Closest double: 1.44268798828125
|
staticget |
Closest double: 3.32191467285156
|
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.