newton.math#
Functions
|
Compute the Boltzmann-weighted average of two values. |
|
Compute a numerically stable, differentiable approximation of max(a, b). |
|
Compute a numerically stable, differentiable approximation of min(a, b). |
Normalize a vector and return both the normalized vector and the original norm. |
|
Build an orthonormal basis from a normal vector. |
|
|
Safe division that avoids division-by-zero. |
|
Compute a smooth approximation of the maximum of two values. |
|
Compute a smooth approximation of the minimum of two values. |
|
Compute the elementwise absolute value of a 3D vector. |
|
Check if two Warp vectors are all close. |
|
Check if a Warp vector is inside the given limits. |
|
Compute the elementwise "leaky" maximum of two 3D vectors. |
|
Compute the elementwise "leaky" minimum of two 3D vectors. |
|
Compute the elementwise maximum of two 3D vectors. |
|
Compute the elementwise minimum of two 3D vectors. |