Crates.io | vec2 |
lib.rs | vec2 |
version | 0.2.1 |
source | src |
created_at | 2017-08-17 19:33:32.766582 |
updated_at | 2018-08-19 18:12:16.307986 |
description | vec2 |
homepage | https://gitlab.com/nathanfaucett/rs-gmath |
repository | https://gitlab.com/nathanfaucett/rs-gmath.git |
max_upload_size | |
id | 27908 |
size | 23,390 |
vector 2 functions
extern crate vec2;
fn main() {
let a = [1, 1];
let b = [1, 1];
let mut out = vec2::new(0, 0);
vec2::add(&mut out, &a, &b);
assert_eq!(out, [2, 2]);
}