mathl 0.0.2

A math library for Rust. The goal is to use this with rhai
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Vector types and functions

#[inline(always)]
pub fn vec2_zero() -> [f64; 2] {
    [0.0; 2]
}

#[inline(always)]
pub fn vec3_zero() -> [f64; 3] {
    [0.0; 3]
}

#[inline(always)]
pub fn vec4_zero() -> [f64; 4] {
    [0.0; 4]
}