[HN Gopher] Show HN: Rust Vector and Quaternion Lib
___________________________________________________________________
Show HN: Rust Vector and Quaternion Lib
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.
Author : the__alchemist
Score : 49 points
Date : 2025-03-06 20:32 UTC (2 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| tux3 wrote:
| 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 wrote:
| 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 wrote:
| 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 wrote:
| no_std seems somewhat novel, which might have been another
| motivating factor?
| simojo wrote:
| how does it compare to nalgebra?
| kvark wrote:
| The gamedev ecosystem appears to be split between nalgebra (for
| Rapier users) and glam. Where does lin-alg fit?
| pttrn wrote:
| cgmath?
| bladeee wrote:
| cgmath is nice, but it uses old Rust 2015 and hasn't been
| updated since January 2021.
| lawlessone wrote:
| Quaternions, we were due our weekly quaternion post.
|
| Nice work by the way!
___________________________________________________________________
(page generated 2025-03-06 23:00 UTC)