geometric

Crates.iogeometric
lib.rsgeometric
version0.2.1
sourcesrc
created_at2017-02-08 20:04:27.148204
updated_at2021-03-05 20:43:21.998955
descriptionA very simple vector and matrix library built on the vecmath crate.
homepagehttps://github.com/Pirh/geometric
repositoryhttps://github.com/Pirh/geometric.git
max_upload_size
id8435
size26,014
Vi (mistodon)

documentation

https://github.com/Pirh/geometric

README

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;
Commit count: 0

cargo fmt