transform-matrix 0.1.1

Easy transformation matrices
Documentation
  • Coverage
  • 85.71%
    6 out of 7 items documented1 out of 7 items with examples
  • Size
  • Source code size: 21.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.37 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • oberzs

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
}