vec4

Crates.iovec4
lib.rsvec4
version0.2.1
sourcesrc
created_at2017-08-17 19:34:36.644647
updated_at2018-08-19 18:12:38.821849
descriptionvec4
homepagehttps://gitlab.com/nathanfaucett/rs-gmath
repositoryhttps://gitlab.com/nathanfaucett/rs-gmath.git
max_upload_size
id27909
size24,973
Nathan Faucett (nathanfaucett)

documentation

README

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

cargo fmt