cgmath
                                
                                 cgmath copied to clipboard
                                
                                    cgmath copied to clipboard
                            
                            
                            
                        A linear algebra and mathematics library for computer graphics.
Sometimes it's necessary to calculate inverse + transpose matrix, to calculate proper normals matrix, for example. There are (of course) [methods](https://github.com/rustgd/cgmath/blob/master/src/matrix.rs#L743) to do this. But (i presume) it is not...
Would it be possible to add a trait to downcast `&[Vector]` to `&[[T; N]]` and `&[T]` ? I work with buffers of vectors, and I need to pass them to...
Infinite far planes is a standard trick that actually improves the precision of the Z buffer. See for instance https://thxforthefish.com/posts/reverse_z/ and https://developer.nvidia.com/content/depth-precision-visualized
so that Point can use unit_x() etc.
AMD Ryzen 7 3700X Windows 10 19044.1566 rustc 1.60.0-nightly (1e12aef3f 2022-02-13) The other day I was testing sprite performance in my engine and noticed it was a lot lower than...
The conversion between a vector and a tuple is defined as follows: https://docs.rs/cgmath/0.18.0/src/cgmath/macros.rs.html#226-238 ``` impl AsRef for $ArrayN { #[inline] fn as_ref(&self) -> &$Tuple { unsafe { mem::transmute(self) } }...
In a somewhat traditional scene setup, my camera has an associated transform (i.e. the model matrix of the camera node), and then I derive the view matrix by inverting the...
I've been working with cgmath, trying to use the Matrix4 and Quaternion structs for some animation related graphics stuff. I ran into something which required me to create a 4x4...
When I tried to use another crate `crevice`, I found the example given in its docs seems not working. The example using `cgmath` is [here](https://github.com/LPGhatguy/crevice) in its README. Then I...
I just ran into this when upgrading from cgmath 0.7 to cgmath 0.10 (I put it off because a lot of my code broke). While it may not be arithmetically...