glam v0.10.0 Release Notes

Release Date: 2020-10-31 // over 3 years ago
  • 💥 Breaking Changes

    • 🔄 Changed the return type of Vec4::truncate from Vec3A to Vec3.

    ➕ Added

    • ➕ Added From implementations to truncate to narrower vector types, e.g. Vec4 to Vec3A, Vec3 and Vec2 and from Vec3A and Vec3 to Vec2.
    • ➕ Added swizzles for Vec4, Vec3A, Vec3 and Vec2. These can be used to reorder elements in the same type and also to create larger or smaller vectors from the given vectors elements.
    • ➕ Added Quat operators Add<Quat>, Sub<Quat>, Mul<f32> and Div<f32. These are used by other crates for interpolation quaternions along splines. Note that these operations will not return unit length quaternions, thus the results must be normalized before performing other Quat operations.
    • Added Mat4::transform_point3a and Mat4::transform_vector3a.
    • ➕ Added AsRef<[f32; 9]> and AsMut<[f32; 9]> trait implementations to Mat3.
    • ➕ Added optional bytemuck support primarily for casting types to &[u8].
    • ➕ Added support for compiling with no_std by disabling the default std feature and adding the libm feature.
    • ➕ Added distance and distance_squared methods to Vec2, Vec3, Vec3A and Vec4.