Simple scalar operations.
More...
|
constexpr double | radians (double a) |
|
constexpr double | degrees (double a) |
|
constexpr double | smoothstep (double edge0, double edge1, double a) |
|
double | sind (double x) |
|
double | cosd (double x) |
|
|
constexpr double | kPi = 3.14159265358979323846264338327950288 |
|
constexpr double | kTwoPi = 6.28318530717958647692528676655900576 |
|
constexpr double | kHalfPi = 1.57079632679489661923132169163975144 |
|
Simple scalar operations.
◆ radians()
double radians |
( |
double | a | ) |
|
|
constexpr |
Convert degrees to radians.
- Parameters
-
◆ degrees()
double degrees |
( |
double | a | ) |
|
|
constexpr |
Convert radians to degrees.
- Parameters
-
◆ smoothstep()
double smoothstep |
( |
double | edge0, |
|
|
double | edge1, |
|
|
double | a ) |
|
constexpr |
Performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1.
- Parameters
-
edge0 | Specifies the value of the lower edge of the Hermite function. |
edge1 | Specifies the value of the upper edge of the Hermite function. |
a | Specifies the source value for interpolation. |
◆ sind()
Sine function where multiples of 90 degrees come out exact.
- Parameters
-
◆ cosd()
Cosine function where multiples of 90 degrees come out exact.
- Parameters
-