rustgd / cgmath

A linear algebra and mathematics library for computer graphics.
https://docs.rs/cgmath
Apache License 2.0
1.12k stars 155 forks source link

Added checked_normalize #551

Open RuairidhWilliamson opened 1 year ago

RuairidhWilliamson commented 1 year ago

Hello, I noticed that there was no method to normalize a vector where the zero vector maps to itself. I looked at the issues and found https://github.com/rustgd/cgmath/issues/450. I thought I might as well implement it.

Thanks for looking at this,