|
EGXPhys
|
Functions | |
| template<typename T > | |
| int | EGXMath::QuickSign (const T &x) |
| Gives the sign of a number. -1 for negative numbers, 1 for positive and 0 for zero. \[sign(x)=(0 < x) - (x < 0) \] . More... | |
|
inline |
Gives the sign of a number. -1 for negative numbers, 1 for positive and 0 for zero.
\[sign(x)=(0 < x) - (x < 0) \]
.
| x | \(x\ (dimensionless)\) is the argument of the function. |