mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-20 17:22:04 +02:00
Added NAN, INF, and is_nan().
This commit is contained in:
@@ -14,6 +14,10 @@ PHI = (1+sqrt(5))/2; // The golden ratio phi.
|
||||
|
||||
EPSILON = 1e-9; // A really small value useful in comparing FP numbers. ie: abs(a-b)<EPSILON
|
||||
|
||||
INF = 1/0; // The value `inf`, useful for comparisons.
|
||||
|
||||
NAN = acos(2); // The value `nan`, useful for comparisons.
|
||||
|
||||
|
||||
|
||||
// Section: Simple math
|
||||
|
Reference in New Issue
Block a user