Changelog History
Page 1
-
v0.22.0 Changes
October 24, 2022๐ฅ Breaking changes
โ Added
u32
implementation ofBVec3A
andBVec4
when SIMD is not available. These are used instead of aliasing to thebool
implementations.โ Removed
Add
,Sub
, and scalarMul
implementations from affine types as they didn't make sense on these types.โ Removed deprecated
const_*
macros. These have been replaced byconst fn
methods.
๐ Fixed
๐ Fixed
neg
andsignum
to consistently handle negative zero across multiple platforms.โ Removed
register_attr
feature usage for SPIR-V targets.
โ Added
โ Added missing
Serialize
,Deserialize
andPartialEq
implementations.โ Added
Sum<Self>
andProduct<Self>
implementations for all vector, matrix and quaternion types.Added 4x4 matrix methods
look_to_lh
andlook_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 au32
of bits for each negative vector lane.โ Added
splat
method andTRUE
andFALSE
constants to allBVec
types.โ Added
from_mat3a
methods toAffine2
,Mat2
,Mat4
andQuat
types.
๐ Changed
0๏ธโฃ Disable
serde
default features.Made
to_cols_array
,to_cols_array_2d
, andfrom_diagonal
methodsconst fn
.
-
v0.21.3 Changes
August 02, 2022๐ 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 unstablecore::simd
module.
๐ Changed
- Derive from
PartialEq
andEq
instead of providing a trait implementation for all non SIMD types.
- ๐ Fixed
-
v0.21.2 Changes
June 25, 2022๐ Fixed
โช Restore missing
$crate::
prefix in deprecatedconst_*
macros.๐ Fixed some performance regressions in affine and matrix determinant and inverses due to lack of inlining.
๐ Fixed some performance regressions in the SSE2
Vec3A
toVec3
from conversion.
โ Added
- Implemented
BitXor
andBitXorAssign
traits forbool
vectors.
-
v0.21.1 Changes
June 22, 2022๐ Fixed
- ๐ Fix compilation when FMA support is enabled.
-
v0.21.0 Changes
June 22, 2022๐ฅ Breaking changes
๐ Minimum Supported Version of Rust bumped to 1.58.1 to allow
const
pointer dereferences in constant evaluation.The
abs_diff_eq
method onMat2
andDMat2
now takesother
by value instead of reference. This is consistent with the other matrix types.The
AsMut
andDeref
trait implementations onQuat
andDQuat
was removed. Quaternion fields are now public.๐ The
AsRef
trait implementations were removed fromBVec2
,BVec3
,BVec3A
,BVec4
andBVec4A
.
โ Added
NEG_ONE
constant was added to all signed vector types.NEG_X
,NEG_Y
,NEG_Z
andNEG_W
negative axis vectors were added to signed vector types.The
rotate
andfrom_angle
methods were added toVec2
andDVec2
.from_angle
returns a 2D vector containing[angle.cos(), angle.sin()]
that can be used torotate
another 2D vector.The
from_array
const
function was added to all vector types.
๐ Changed
๐ Source code is now largely generated. This removes most usage of macros internally to improve readability. There should be no change in API or behavior other than what is documented here.
Many methods have been made
const fn
:new
,splat
,from_slice
,to_array
andextend
on vector typesfrom_cols
,from_cols_array
,from_cols_array_2d
,from_cols_slice
on matrix typesfrom_xyzw
andfrom_array
on quaternion typesfrom_cols
on affine types
๐ The
const
new macros where deprecated.
โ Removed
- โ Deleted deprecated
TransformRT
andTransformSRT
types.
-
v0.20.5 Changes
April 12, 2022๐ Fixed
- ๐ Fixed a bug in the scalar implementation of 4D vector
max_element
method where thew
element check was incorrect.
- ๐ Fixed a bug in the scalar implementation of 4D vector
-
v0.20.4 Changes
April 11, 2022๐ Fixed
- ๐ Fixed a bug with quaternion
slerp
with a rotation of tau.
- ๐ Fixed a bug with quaternion
-
v0.20.3 Changes
March 28, 2022โ Added
- โ Added
to_array()
toQuat
andDQuat
. - โ Added
mul_add
method to all vector types - note that this will be slower without hardware support enabled. - โ Added the
fast-math
flag which will sacrifice some float determinism for speed.
๐ Fixed
- ๐ Fixed a bug in the
sse2
andwasm32
implementations ofMat4::determinant()
.
- โ Added
-
v0.20.2 Changes
December 20, 2021๐ Fixed
- ๐ Fixed SPIR-V build which was broken due to a typo.
-
v0.20.1 Changes
November 23, 2021โ Addeed
- Added the
from_rotation_arc_2d()
method toQuat
andDQuat
which will return a rotation between two 2D vectors around the z axis. - โ Added impl of
Neg
operator for matrix types. - โ Added
cuda
feature which forcesglam
types to match cuda's alignment requirements.
๐ Changed
- The
Quat
andDQuat
methodsfrom_rotation_arc()
andfrom_rotation_arc_colinear()
are now available inno_std
. - The
Vec3
andDVec3
methodsany_orthogonal_vector()
,any_orthonormal_vector()
andany_orthonormal_pair()
are now available inno_std
. - โ Added
repr(C)
attribute to affine types.
โ Removed
- Removed deprecated
as_f32()
,as_f64()
,as_i32()
andas_u32()
methods.
- Added the