hexga_math 0.0.11-beta.53

Math related crate that define number and casting, and support array programming...
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

pub trait GetScale<T = float, const N: usize = 3>
where
    Vector<T, N>: Copy,
    T: Copy,
{
    fn scale(&self) -> Vector<T, N>;
}

pub trait SetScale<T = float, const N: usize = 3>: GetScale<T, N>
where
    Vector<T, N>: Copy,
    T: Copy,
{
    fn set_scale(&mut self, scale: Vector<T, N>) -> &mut Self;
}