Skip to content(if available)orjump to list(if available)

Show HN: Rust Vector and Quaternion Lib

Show HN: Rust Vector and Quaternion Lib

10 comments

·March 6, 2025

I use this library I made for Vectors and Quaternions in many personal projects. I've open-sourced it, in case anyone else would get use out of it.

I use this on various projects, including quadcopter firmware, a graphics engine, a cosmology simulation, and several molecular dynamics applications. No_std compatible.

tux3

Sounds interesting, but it's a space with a lot of different options. Have tried doing benchmarks against other vector libraries?

If I'm shopping for a vector library, this is one of the pieces of information that makes the decision easier.

mflaherty22

I'd like to see what the author's motivation was for making this, but I'm not sure benchmarks would be the first thing I look for :)

the__alchemist

I haven't done benchmarks, but this speculation nailed it - The exact motivation is lost, but I believe I became tilted with inconsistent mixes of JPL and Hamilton quaternion operations on the popular libs at the time. Since then, I use it as a low-friction way to conserve geometrical functions among multiple projects. I.e., it's easier to just edit the code base than go through a PR process.

zamalek

no_std seems somewhat novel, which might have been another motivating factor?

kvark

The gamedev ecosystem appears to be split between nalgebra (for Rapier users) and glam. Where does lin-alg fit?

pttrn

cgmath?

bladeee

cgmath is nice, but it uses old Rust 2015 and hasn't been updated since January 2021.

simojo

how does it compare to nalgebra?

lawlessone

Quaternions, we were due our weekly quaternion post.

Nice work by the way!

null

[deleted]