Click or drag to resize

Mathf Fields

The Mathf type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberE
The natural number `e`.
Public fieldStatic memberEpsilon
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`.
Public fieldStatic memberInf
Positive infinity. For negative infinity, use `-Mathf.Inf`.
Public fieldStatic memberNaN
"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.
Public fieldStatic memberPi
Constant that represents how many times the diameter of a circle fits around its perimeter. This is equivalent to `Mathf.Tau / 2`.
Public fieldStatic memberSqrt2
The square root of 2.
Public fieldStatic memberTau
The circle constant, the circumference of the unit circle in radians.
Top
See Also