glam v0.10.0 Release Notes
Release Date: 2020-10-31 // over 3 years ago-
💥 Breaking Changes
- 🔄 Changed the return type of
Vec4::truncate
fromVec3A
toVec3
.
➕ Added
- ➕ Added
From
implementations to truncate to narrower vector types, e.g.Vec4
toVec3A
,Vec3
andVec2
and fromVec3A
andVec3
toVec2
. - ➕ Added swizzles for
Vec4
,Vec3A
,Vec3
andVec2
. 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
operatorsAdd<Quat>
,Sub<Quat>
,Mul<f32>
andDiv<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 otherQuat
operations. - Added
Mat4::transform_point3a
andMat4::transform_vector3a
. - ➕ Added
AsRef<[f32; 9]>
andAsMut<[f32; 9]>
trait implementations toMat3
. - ➕ Added optional
bytemuck
support primarily for casting types to&[u8]
. - ➕ Added support for compiling with
no_std
by disabling the defaultstd
feature and adding thelibm
feature. - ➕ Added
distance
anddistance_squared
methods toVec2
,Vec3
,Vec3A
andVec4
.
- 🔄 Changed the return type of