8 releases
Uses old Rust 2015
0.2.1 | Aug 19, 2018 |
---|---|
0.2.0 | Jun 14, 2018 |
0.1.5 | Feb 23, 2018 |
0.1.4 | Jan 31, 2018 |
0.1.0 | Aug 17, 2017 |
#297 in #vec
29 downloads per month
Used in 2 crates
75KB
2K
SLoC
vec4
vector 4 functions
extern crate vec4;
fn main() {
let a = [1, 1, 1, 1];
let b = [1, 1, 1, 1];
let mut out = vec4::new(0, 0, 0, 0);
vec4::add(&mut out, &a, &b);
assert_eq!(out, [2, 2, 2, 2]);
}
Dependencies
~160KB