rinia 0.0.1

Portable scalar abstractions for game and simulation math.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[allow(unused_imports)]
use core_maths::*;

use crate::{FloatScalar, Scalar};

impl Scalar for f64 {
    const ZERO: Self = 0.0;

    const ONE: Self = 1.0;
}

impl FloatScalar for f64 {
    const INFINITY: Self = f64::INFINITY;

    const NEG_INFINITY: Self = f64::NEG_INFINITY;

    const NAN: Self = f64::NAN;
}