Mathf Fields |
The Mathf type exposes the following members.
Name | Description | |
---|---|---|
E |
The natural number `e`.
| |
Epsilon |
A very small number used for float comparison with error tolerance.
1e-06 with single-precision floats, but 1e-14 if `REAL_T_IS_DOUBLE`.
| |
Inf |
Positive infinity. For negative infinity, use `-Mathf.Inf`.
| |
NaN |
"Not a Number", an invalid value. `NaN` has special properties, including
that it is not equal to itself. It is output by some invalid operations,
such as dividing zero by zero.
| |
Pi |
Constant that represents how many times the diameter of a circle
fits around its perimeter. This is equivalent to `Mathf.Tau / 2`.
| |
Sqrt2 |
The square root of 2.
| |
Tau |
The circle constant, the circumference of the unit circle in radians.
|