cgmath
cgmath copied to clipboard
A linear algebra and mathematics library for computer graphics.
This is possibly more of a question. Would it be of any interest to the users of cgmath to have more fine grained trait bounds on methods from std::ops to...
cgmath is a very old library, and has not yet had the rustfmt treatment! Most Rustaceans have it on by default in their editors, and we should make sure we...
Hello, The current cgmath version in crates.io (0.17.0) depends on rand 0.6, but I see that the current version in the repository depends in rand 0.7 since august, which would...
These methods are quite useful whenever you have to make sure that a value stays inside a specified range. Although there is `f32::clamp` and `f64::clamp` these are not stabilized yet...
error[E0034]: multiple applicable items in scope --> hello_gl\src\main.rs:29:16 | 29 | let tran = Matrix4::one(); | ^^^^^^^^^^^^ multiple `one` found | = note: candidate #1 is defined in an impl...
Does it make sense to add a `zip` function to array-like types? Doing so will make it less error-prone to do custom element wise operations: ```rust /// Compute the element...
If I'm treating `Matrix3` as a homogeneous matrix for 2D coordinates, the equivalent of `Matrix4`'s `from_translation` is missing.
This is my first time with cgmath/rust/etc, so apologies if this is due to misunderstanding something fundamental about cgmath. The matrix created by Matrix3::look_at will not map the fwd basis...
cgmath uses OpenGL's coordinate system conventions for the projection matrices. This means that the projection matrices generated by cgmath need to be modified (see: [the new Vulkan coordinate system](https://matthewwellings.com/blog/the-new-vulkan-coordinate-system/)) when...
Taking the element-wise absolute value of a vector is a pretty common operation in GLSL. It would be lovely to have an `abs_element_wise()`. Maybe also a `.abs()` added to `VectorSpace`...