rinia 0.0.15

Stable numeric foundations for graphics, animation, and simulation.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::scalar;

// Implement ApproxEqAbs/ApproxEqRel for floating scalar types.
scalar::_impl_scalar_approx_eq!(
    [f32, abs: 1e-6, rel: 1e-5],
    [f64, abs: 1e-12, rel: 1e-10]
);

// Implement Lerp for floating scalar types.
scalar::_impl_scalar_lerp!(f32, f64);