1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Small math helpers.
//!
//! Basic IEEE operations (`+ - * /`, `sqrt`, `floor`, `round`, `min`, `max`) give
//! identical results on every platform. Transcendental functions (`pow`, `exp`,
//! `sin`) do not when they come from the platform's C library, so they must go
//! through `libm`, which is pure Rust and identical everywhere.
pub use TAU;
/// Hermite smoothstep between `e0` and `e1`.
/// `x^y` via libm (deterministic across platforms).
/// `sin(x)` via libm (deterministic across platforms).
/// Per-mille integer to a fraction.