cgmath-rs v0.8.0 Release Notes

Release Date: 2016-04-06 // about 8 years ago
  • ➕ Added

    • Implements fmt::Debug for Basis2, Basis3, and AffineMatrix3
    • A prelude module for easy importing of common traits.
    • Constrained conversion functions for assisting in situations where type inference is difficult.
    • An ElementWise trait for non-mathematical element-wise operations.
    • 0️⃣ A default implementation for EuclideanVector::angle.

    🔄 Changed

    • 👌 Improves the fmt::Debug impls for Vector, Matrix, Point, Decomposed, Quaternion and Angle to make them easier to derive, and have clearer formatting.
    • Marks vectors, points, matrices, and angles as #[repr(C, packed)].
    • 📇 Renames the Vector::{length, length2} functions to Vector::{magnitude, magnitude2}.
    • 🚚 Move Angle::new to be directly implemented on the Rad and Deg types.
    • 🚚 Move Vector::dot to EuclideanVector trait.
    • 🚚 Move Vector::from_value to Array trait.

    ✂ Removed

    • 🚚 The non-mathematical operator trait implementations have been removed from the Vector trait, in favor of the ElementWise trait.
    • Angle::equiv.
    • ✂ Remove neg_self method on vectors and matrices.