|
Rhino C++ API
9.0
|
#include <opennurbs_defines.h>
Static Public Member Functions | |
| static int | Compare (const double *lhs, const double *rhs) |
| Well ordered compare that handles nullpt and nans and sorts them to the end. ON_DBL::Compare(nullptr, nullptr) = 0; ON_DBL::Compare(not nullptr, nullptr) = -1; ON_DBL::Compare(nullptr, not nullptr) = +1; ON_DBL::Compare(not nullptr, not nullptr) = ON_DBL::CompareValue(*lhs,*rhs); More... | |
| static int | CompareValue (double lhs, double rhs) |
| Well ordered compare that handles nans and sorts them to the end. ON_DBL::CompareValue(nan, nan) = 0; ON_DBL::CompareValue(non_nan, nan) = -1; ON_DBL::CompareValue(nan, non_nan) = +1; More... | |
| static bool | IsFiniteNegative (double x) |
| Test a value to see if it is a valid negative value. Values <= ON_DBL::Unset, including -infinity, are considered invalid because using them in typical calculations almost always returns useless results. More... | |
| static bool | IsFiniteNegativeOrZero (double x) |
| Test a value to see if it is a valid nonpositive value. Values <= ON_DBL::Unset, including -infinity, are considered invalid because using them in typical calculations almost always returns useless results. More... | |
| static bool | IsFinitePositive (double x) |
| Test a value to see if it is a valid postive value. Values >= ON_DBL::PositiveUnset, including +infinity, are considered invalid because using them in typical calculations almost always returns useless results. More... | |
| static bool | IsFinitePositiveOrZero (double x) |
| Test a value to see if it is a valid nonnegative value. Values >= ON_DBL::PositiveUnset, including +infinity, are considered invalid because using them in typical calculations almost always returns useless results. More... | |
| static bool | IsInfinity (double x) |
| static bool | IsNan (double x) |
| static bool | IsNegativeInfinity (double x) |
| static bool | IsNotNan (double x) |
| static bool | IsPositiveInfinity (double x) |
| static bool | IsUnset (double x) |
| static bool | IsValid (double x) |
| All nans, +infinity, -infinity, x <= than ON_DBL::Unset and x >= ON_DBL::PositiveUnset are considered invalid because using them in typical calculations almost always returns useless results. More... | |
| static int | Sign (double x) |
Static Public Attributes | |
| static const double | Nan |
| ON_DBL::Nan is an IEEE quiet nan (not a number). More... | |
| static const double | NegativeInfinity |
| ON_DBL::NegativeInfinity is IEEE -infinity. More... | |
| static const double | NegativeMax |
| ON_DBL::NegativeMax = -1.7976931348623158e+308 More... | |
| static const double | NegativeMin |
| ON_DBL::NegativeMax = -2.22507385850720200e-308 More... | |
| static const double | PositiveInfinity |
| ON_DBL::PositiveInfinity is IEEE +infinity. More... | |
| static const double | PositiveMax |
| ON_DBL::PositiveMax = +1.7976931348623158e+308 More... | |
| static const double | PositiveMin |
| ON_DBL::PositiveMax = +2.22507385850720200e-308 More... | |
| static const double | PositiveUnset |
| ON_DBL::PositiveUnset = +1.23432101234321e+308 More... | |
| static const double | Unset |
| ON_DBL::Unset = -1.23432101234321e+308 More... | |
|
static |
Well ordered compare that handles nullpt and nans and sorts them to the end. ON_DBL::Compare(nullptr, nullptr) = 0; ON_DBL::Compare(not nullptr, nullptr) = -1; ON_DBL::Compare(nullptr, not nullptr) = +1; ON_DBL::Compare(not nullptr, not nullptr) = ON_DBL::CompareValue(*lhs,*rhs);
| lhs | |
| rhs |
|
static |
Well ordered compare that handles nans and sorts them to the end. ON_DBL::CompareValue(nan, nan) = 0; ON_DBL::CompareValue(non_nan, nan) = -1; ON_DBL::CompareValue(nan, non_nan) = +1;
| lhs | |
| rhs |
|
static |
Test a value to see if it is a valid negative value. Values <= ON_DBL::Unset, including -infinity, are considered invalid because using them in typical calculations almost always returns useless results.
| x | value to test. |
|
static |
Test a value to see if it is a valid nonpositive value. Values <= ON_DBL::Unset, including -infinity, are considered invalid because using them in typical calculations almost always returns useless results.
| x | value to test. |
|
static |
Test a value to see if it is a valid postive value. Values >= ON_DBL::PositiveUnset, including +infinity, are considered invalid because using them in typical calculations almost always returns useless results.
| x | value to test. |
|
static |
Test a value to see if it is a valid nonnegative value. Values >= ON_DBL::PositiveUnset, including +infinity, are considered invalid because using them in typical calculations almost always returns useless results.
| x | value to test. |
|
static |
| x |
|
static |
| x |
|
static |
|
static |
| x |
|
static |
|
static |
|
static |
All nans, +infinity, -infinity, x <= than ON_DBL::Unset and x >= ON_DBL::PositiveUnset are considered invalid because using them in typical calculations almost always returns useless results.
| x | value to test. |
|
static |
| x |
|
static |
ON_DBL::Nan is an IEEE quiet nan (not a number).
|
static |
ON_DBL::NegativeInfinity is IEEE -infinity.
|
static |
ON_DBL::NegativeMax = -1.7976931348623158e+308
|
static |
ON_DBL::NegativeMax = -2.22507385850720200e-308
|
static |
ON_DBL::PositiveInfinity is IEEE +infinity.
|
static |
ON_DBL::PositiveMax = +1.7976931348623158e+308
|
static |
ON_DBL::PositiveMax = +2.22507385850720200e-308
|
static |
ON_DBL::PositiveUnset = +1.23432101234321e+308
|
static |
ON_DBL::Unset = -1.23432101234321e+308
1.8.17