Crates.io | transform-matrix |
lib.rs | transform-matrix |
version | 0.1.1 |
source | src |
created_at | 2019-08-22 18:05:27.766971 |
updated_at | 2019-08-22 18:16:37.556439 |
description | Easy transformation matrices |
homepage | |
repository | https://github.com/OllieBerzs/transform-matrix |
max_upload_size | |
id | 158928 |
size | 21,604 |
Create transformation matrices for OpenGL in the Rust programming language.
A simple example to create a transformation matrix that moves and projects the view:
use transform_matrix::*;
fn main() {
let _t = Transform::new()
.translate(4.0, 5.0, 0.0)
.orthographic(480.0, 360.0, 100.0);
// Use the matrix _t in OpenGL
}