rinia 0.0.9

Portable scalar abstractions for game and simulation math.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{
    FloatScalar, ScalarTuple,
    ops::{DotProduct, Negate},
};

/// A trait representing a scalar type that can be used in quaternions.
pub trait QuatScalar: FloatScalar {}

/// A trait representing a quaternion type with the minimal set of operations required
/// for mathematical computations.
pub trait Quaternion: Copy + ScalarTuple + DotProduct + Negate {}