#vector #matrix #geometry #vecmath

geometric

A very simple vector and matrix library built on the vecmath crate

1 unstable release

Uses old Rust 2015

0.2.1 Mar 5, 2021
0.2.0 Apr 26, 2017
0.1.0 Feb 8, 2017

#1043 in Math

MIT license

26KB
675 lines

A very simple vector and matrix library build on the vecmath crate.

Examples

Constructing vectors

let v2 = vec2(1.0, 2.0);
let v3 = Vector3::new([1.0, 2.0, 3.0]);
let v4 = Vector4::from([1.0, 2.0, 3.0, 4.0]);

Basic operators

let v0 = vec2(2.0, 2.0);
let v1 = (v0 * v0 + v0) / v0;

Dependencies

~68KB