-
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 other libraries, that are using `&[T]` for compatibi…
-
cgmath currently has a [`MetricSpace`](https://docs.rs/cgmath/0.15.0/cgmath/trait.MetricSpace.html) trait that is defined for vectors, points, and quaternions:
```rust
pub trait MetricSpace: Sized…
-
``` rust
extern crate cgmath;
use cgmath::*;
fn main() {
let axis = vec3::(1.0, 0.0, 1.0);
let a = Basis3::from_axis_angle(&axis, deg(75.0).to_rad());
let b = Basis3::from_axis_angle(&ax…
-
Would it make sense to add conversion to and from barycentric coordinates to cgmath?
-
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 vec…
-
A data structure with three floating-point numbers `(x, y, z)` and methods for checking if two positions are the same and if not, then what is the distance between them. Also utility methods for creat…
-
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 valid to do element wise multiply and divisions it …
-
cgmath is very bare bones, it might be beneficial to choose another math library like [nalgebra](https://github.com/sebcrozet/nalgebra).
It might also be beneficial to write our own math library, o…
-
This list is due to change but represents progress towards version 1.0.
### Phase 1 (blocking/serial)
- [x] Shapes can choose shader
- [x] Shape trait -> Iterator
- [x] `Rc` texture / images own…
-
A 3D normalized mathematical vector. It should be possible to create them by operations on other vectors (especially multiplication) and from two `Position`s. I imagine the basic way to use `Direction…