cgmath
cgmath copied to clipboard
No Basis3 or Matrix3 identity?
Why is there no way to just do Basis3::<f32>::identity()?
You can do Basis3::one() or Basis3::from_quaternion(Quaternion::one())
Thanks! I find that to be a bit of an unintuitive way to name it, no?
Yes, well, it's just that cgmath has a One trait that it tries to use everywhere..
It could have an alias method named identity in the basis3