vec3

Crates.iovec3
lib.rsvec3
version0.2.1
sourcesrc
created_at2017-08-17 19:28:20.173288
updated_at2018-08-19 18:11:55.596978
descriptionvec3
homepagehttps://gitlab.com/nathanfaucett/rs-gmath
repositoryhttps://gitlab.com/nathanfaucett/rs-gmath.git
max_upload_size
id27907
size25,715
Nathan Faucett (nathanfaucett)

documentation

README

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

cargo fmt