transform-matrix 0.1.0

Easy transformation matrices
Documentation

transform-matrix

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
}