Crates.io | gmath |
lib.rs | gmath |
version | 0.1.1 |
source | src |
created_at | 2018-06-14 13:06:15.941404 |
updated_at | 2018-08-19 18:13:09.047526 |
description | math for graphics and games |
homepage | https://gitlab.com/nathanfaucett/rs-gmath |
repository | https://gitlab.com/nathanfaucett/rs-gmath.git |
max_upload_size | |
id | 70086 |
size | 15,532 |
=====
math for graphics and games
extern crate gmath;
use gmath::{vec3, quat, mat4};
fn main() {
let position = vec3::new_zero();
let scale = vec3::new_one();
let rotation = quat::new_identity();
let mut matrix = mat4::new_identity();
mat4::compose(&mut matrix, &position, &scale, &rotation);
}