Crates.io | vec4 |
lib.rs | vec4 |
version | 0.2.1 |
source | src |
created_at | 2017-08-17 19:34:36.644647 |
updated_at | 2018-08-19 18:12:38.821849 |
description | vec4 |
homepage | https://gitlab.com/nathanfaucett/rs-gmath |
repository | https://gitlab.com/nathanfaucett/rs-gmath.git |
max_upload_size | |
id | 27909 |
size | 24,973 |
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]);
}