- Make
Vector::new
constant
- Add component casting APIs
num_cast
— Numeric casts like with theas
keywordcast
— Casts with the Into traittry_cast
— Casts with the TryInto trait
- Reduce type requirements for Vector::signum from Floats to all Signed types
- Add Vector::distance to calculate the Euclidean Distance between two points
- Add Vector::manhattan_distance to calculate the Manhattan Distance between points
- Add Vector::sum to sum the values of all components
- Add Vector::opposite to create a new vector with all components negated
- Impl assigning operations
- Add
- Subtract
- Divide
- Remainder
- Allow getting vector as a component slice
- Absolute value function
- Allow accessing components on 2D and 3D vectors with
.x()
,.y()
, and.x()
if applicable - Add the
documentation
attribute to the Cargo.toml
- Cleanup type aliases
- Improved vector macro
- Internal code cleanup
First release of nd-vec. Moved from my n-dimensional audio engine project.