glam v0.22.0 Release Notes

Release Date: 2022-10-24 // over 1 year ago
  • ๐Ÿ’ฅ Breaking changes

    • โž• Added u32 implementation of BVec3A and BVec4 when SIMD is not available. These are used instead of aliasing to the bool implementations.

    • โœ‚ Removed Add, Sub, and scalar Mul implementations from affine types as they didn't make sense on these types.

    • โœ‚ Removed deprecated const_* macros. These have been replaced by const fn methods.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed neg and signum to consistently handle negative zero across multiple platforms.

    • โœ‚ Removed register_attr feature usage for SPIR-V targets.

    โž• Added

    • โž• Added missing Serialize, Deserialize and PartialEq implementations.

    • โž• Added Sum<Self> and Product<Self> implementations for all vector, matrix and quaternion types.

    • Added 4x4 matrix methods look_to_lh and look_to_rh. These were previously private.

    • Added dot_into_vec methods to vector which returns the result of the dot product splatted to all vector lanes.

    • Added is_negative_bitmask to vector types which returns a u32 of bits for each negative vector lane.

    • โž• Added splat method and TRUE and FALSE constants to all BVec types.

    • โž• Added from_mat3a methods to Affine2, Mat2, Mat4 and Quat types.

    ๐Ÿ”„ Changed

    • 0๏ธโƒฃ Disable serde default features.

    • Made to_cols_array, to_cols_array_2d, and from_diagonal methods const fn.


Previous changes from v0.21.3

  • ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed glam_assert being too restrictive in matrix transform point and transform vector methods.

    โž• Added

    • โž• Added experimental core-simd feature which enables SIMD support via the unstable core::simd module.

    ๐Ÿ”„ Changed

    • Derive from PartialEq and Eq instead of providing a trait implementation for all non SIMD types.