8 releases

Uses old Rust 2015

0.2.1 Aug 19, 2018
0.2.0 Jun 14, 2018
0.1.6 Feb 23, 2018
0.1.5 Jan 31, 2018
0.1.0 Aug 17, 2017

#2462 in Rust patterns

Download history 46/week @ 2024-07-20 93/week @ 2024-07-27 52/week @ 2024-08-03 58/week @ 2024-08-10 39/week @ 2024-08-17 47/week @ 2024-08-24 54/week @ 2024-08-31 32/week @ 2024-09-07 36/week @ 2024-09-14 100/week @ 2024-09-21 88/week @ 2024-09-28 68/week @ 2024-10-05 84/week @ 2024-10-12 97/week @ 2024-10-19 57/week @ 2024-10-26 46/week @ 2024-11-02

285 downloads per month
Used in 15 crates (6 directly)

MIT/Apache

26KB
672 lines

vec3

vector 3 functions

extern crate vec3;

fn main() {
    let a = [1, 1, 1];
    let b = [1, 1, 1];
    let mut out = vec3::new(0, 0, 0);

    vec3::add(&mut out, &a, &b);

    assert_eq!(out, [2, 2, 2]);
}

Dependencies

~160KB