transform-matrix 0.1.1

Easy transformation matrices
Documentation

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
}