#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

#1047 in Math

Download history 14/week @ 2024-02-22 10/week @ 2024-02-29 8/week @ 2024-03-07 5/week @ 2024-03-14 30/week @ 2024-03-28 30/week @ 2024-04-04

60 downloads per month

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