transform-matrix

Crates.iotransform-matrix
lib.rstransform-matrix
version0.1.1
sourcesrc
created_at2019-08-22 18:05:27.766971
updated_at2019-08-22 18:16:37.556439
descriptionEasy transformation matrices
homepage
repositoryhttps://github.com/OllieBerzs/transform-matrix
max_upload_size
id158928
size21,604
Oliver Berzs (oberzs)

documentation

https://docs.rs/transform-matrix/0.1.0/

README

transform-matrix

Crates.io Docs.rs Crates.io CircleCI

Create transformation matrices for OpenGL in the Rust programming language.

Documentation

Example

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
}
Commit count: 0

cargo fmt