vec2

Crates.iovec2
lib.rsvec2
version0.2.1
sourcesrc
created_at2017-08-17 19:33:32.766582
updated_at2018-08-19 18:12:16.307986
descriptionvec2
homepagehttps://gitlab.com/nathanfaucett/rs-gmath
repositoryhttps://gitlab.com/nathanfaucett/rs-gmath.git
max_upload_size
id27908
size23,390
Nathan Faucett (nathanfaucett)

documentation

README

vec2

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]);
}
Commit count: 11

cargo fmt