Debian Codegraph @

debian/missing-sources/glam-0.22.0/CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 The format is based on [Keep a Changelog], and this project adheres to
6 [Semantic Versioning].
7
8 ## [0.22.0] - 2022-10-24
9
10 ### Breaking changes
11
12 * Added `u32` implementation of `BVec3A` and `BVec4` when SIMD is not available.
13 These are used instead of aliasing to the `bool` implementations.
14
15 * Removed `Add`, `Sub`, and scalar `Mul` implementations from affine types as
16 they didn't make sense on these types.
17
18 * Removed deprecated `const_*` macros. These have been replaced by `const fn`
19 methods.
20
21 ### Fixed
22
23 * Fixed `neg` and `signum` to consistently handle negative zero across multiple
24 platforms.
25
26 * Removed `register_attr` feature usage for SPIR-V targets.
27
28 ### Added
29
30 * Added missing `Serialize`, `Deserialize` and `PartialEq` implementations.
31
32 * Added `Sum<Self>` and `Product<Self>` implementations for all vector, matrix
33 and quaternion types.
34
35 * Added 4x4 matrix methods `look_at_lh` and `look_at_rh`. These were previously
36 private.
37
38 * Added `dot_into_vec` methods to vector which returns the result of the dot
39 product splatted to all vector lanes.
40
41 * Added `is_negative_bitmask` to vector types which returns a `u32` of bits for
42 each negative vector lane.
43
44 * Added `splat` method and `TRUE` and `FALSE` constants to all `BVec` types.
45
46 * Added `from_mat3a` methods to `Affine2`, `Mat2`, `Mat4` and `Quat` types.
47
48 ### Changed
49
50 * Disable `serde` default features.
51
52 * Made `to_cols_array`, `to_cols_array_2d`, and `from_diagonal` methods
53 `const fn`.
54
55 ## [0.21.3] - 2022-08-02
56
57 ### Fixed
58
59 * Fixed `glam_assert` being too restrictive in matrix transform point and
60 transform vector methods.
61
62 ### Added
63
64 * Added experimental `core-simd` feature which enables SIMD support via the
65 unstable `core::simd` module.
66
67 ### Changed
68
69 * Derive from `PartialEq` and `Eq` instead of providing a trait implementation
70 for all non SIMD types.
71
72 ## [0.21.2] - 2022-06-25
73
74 ### Fixed
75
76 * Restore missing `$crate::` prefix in deprecated `const_*` macros.
77
78 * Fixed some performance regressions in affine and matrix determinant and
79 inverses due to lack of inlining.
80
81 * Fixed some performance regressions in the SSE2 `Vec3A` to `Vec3` from
82 conversion.
83
84 ### Added
85
86 * Implemented `BitXor` and `BitXorAssign` traits for `bool` vectors.
87
88 ## [0.21.1] - 2022-06-22
89
90 ### Fixed
91
92 * Fix compilation when FMA support is enabled.
93
94 ## [0.21.0] - 2022-06-22
95
96 ### Breaking changes
97
98 * Minimum Supported Version of Rust bumped to 1.58.1 to allow `const` pointer
99 dereferences in constant evaluation.
100
101 * The `abs_diff_eq` method on `Mat2` and `DMat2` now takes `other` by value
102 instead of reference. This is consistent with the other matrix types.
103
104 * The `AsMut` and `Deref` trait implementations on `Quat` and `DQuat` was
105 removed. Quaternion fields are now public.
106
107 * The `AsRef` trait implementations were removed from `BVec2`, `BVec3`,
108 `BVec3A`, `BVec4` and `BVec4A`.
109
110 ### Added
111
112 * `NEG_ONE` constant was added to all signed vector types.
113
114 * `NEG_X`, `NEG_Y`, `NEG_Z` and `NEG_W` negative axis vectors were added to
115 signed vector types.
116
117 * The `rotate` and `from_angle` methods were added to `Vec2` and `DVec2`.
118 `from_angle` returns a 2D vector containing `[angle.cos(), angle.sin()]` that
119 can be used to `rotate` another 2D vector.
120
121 * The `from_array` `const` function was added to all vector types.
122
123 ### Changed
124
125 * Source code is now largely generated. This removes most usage of macros
126 internally to improve readability. There should be no change in API or
127 behavior other than what is documented here.
128
129 * Many methods have been made `const fn`:
130 * `new`, `splat`, `from_slice`, `to_array` and `extend` on vector types
131 * `from_cols`, `from_cols_array`, `from_cols_array_2d`, `from_cols_slice` on
132 matrix types
133 * `from_xyzw` and `from_array` on quaternion types
134 * `from_cols` on affine types
135
136 * The `const` new macros where deprecated.
137
138 ### Removed
139
140 * Deleted deprecated `TransformRT` and `TransformSRT` types.
141
142 ## [0.20.5] - 2022-04-12
143
144 ### Fixed
145
146 * Fixed a bug in the scalar implementation of 4D vector `max_element` method
147 where the `w` element check was incorrect.
148
149 ## [0.20.4] - 2022-04-11
150
151 ### Fixed
152
153 * Fixed a bug with quaternion `slerp` with a rotation of tau.
154
155 ## [0.20.3] - 2022-03-28
156
157 ### Added
158
159 * Added `to_array()` to `Quat` and `DQuat`.
160 * Added `mul_add` method to all vector types - note that this will be slower
161 without hardware support enabled.
162 * Added the `fast-math` flag which will sacrifice some float determinism for
163 speed.
164
165 ### Fixed
166
167 * Fixed a bug in the `sse2` and `wasm32` implementations of
168 `Mat4::determinant()`.
169
170 ## [0.20.2] - 2021-12-20
171
172 ### Fixed
173
174 * Fixed SPIR-V build which was broken due to a typo.
175
176 ## [0.20.1] - 2021-11-23
177
178 ### Added
179
180 * Added the `from_rotation_arc_2d()` method to `Quat` and `DQuat` which will
181 return a rotation between two 2D vectors around the z axis.
182 * Added impl of `Neg` operator for matrix types.
183 * Added `cuda` feature which forces `glam` types to match cuda's alignment
184 requirements.
185
186 ### Changed
187
188 * The `Quat` and `DQuat` methods `from_rotation_arc()` and
189 `from_rotation_arc_colinear()` are now available in `no_std`.
190 * The `Vec3` and `DVec3` methods `any_orthogonal_vector()`,
191 `any_orthonormal_vector()` and `any_orthonormal_pair()` are now available in
192 `no_std`.
193 * Added `repr(C)` attribute to affine types.
194
195 ### Removed
196
197 * Removed deprecated `as_f32()`, `as_f64()`, `as_i32()` and `as_u32()` methods.
198
199 ## [0.20.0] - 2021-11-01
200
201 ### Breaking changes
202
203 * Minimum Supported Version of Rust bumped to 1.52.1 for an update to the `mint`
204 crate.
205
206 ### Added
207
208 * Added implementations for new `IntoMint` trait from the `mint` crate.
209 * Added `mint` conversions for `Mat3A`.
210 * Added `as_vec3a` cast methods to vector types.
211
212 ## [0.19.0] - 2021-10-05
213
214 ### Breaking changes
215
216 * Removed truncating vector `From` implementations. Use `.truncate()` or swizzle
217 methods instead.
218
219 ### Added
220
221 * Added `Not`, `Shl`, `Shr`, `BitAnd`, `BitOr` and `BitXor` implementations for
222 all `IVec` and `UVec` vector types.
223 * Added `NAN` constant for all types.
224 * Documented `glam`'s [architecture](ARCHITECTURE.md).
225
226 ### Changed
227
228 * `Sum` and `Product` traits are now implemented in `no_std` builds.
229
230 ## [0.18.0] - 2021-08-26
231
232 ### Breaking changes
233
234 * Minimum Supported Version of Rust bumped to 1.51.0 for `wasm-bindgen-test`
235 and `rustdoc` `alias` support.
236
237 ### Added
238
239 * Added `wasm32` SIMD intrinsics support.
240 * Added optional support for the `rkyv` serialization crate.
241 * Added `Rem` and `RemAssign` implementations for all vector types.
242 * Added quaternion `xyz()` method for returning the vector part of the
243 quaternion.
244 * Added `From((Scalar, Vector3))` for 4D vector types.
245
246 ### Changed
247
248 * Deprecated `as_f32()`, `as_f64()`, `as_i32()` and `as_u32()` methods in favor
249 of more specific methods such as `as_vec2()`, `as_dvec2()`, `as_ivec2()` and
250 `as_uvec2()` and so on.
251
252 ## [0.17.3] - 2021-07-18
253
254 ### Fixed
255
256 * Fix alignment unit tests on non x86 platforms.
257
258 ## [0.17.2] - 2021-07-15
259
260 ### Fixed
261
262 * Fix alignment unit tests on i686 and S390x.
263
264 ## [0.17.1] - 2021-06-29
265
266 ### Added
267
268 * Added `serde` support for `Affine2`, `DAffine2`, `Affine3A` and `DAffine3`.
269
270 ## [0.17.0] - 2021-06-26
271
272 ### Breaking changes
273
274 * The addition of `Add` and `Sub` implementations of scalar values for vector
275 types may create ambiguities with existing calls to `add` and `sub`.
276 * Removed `From<Mat3>` implementation for `Mat2` and `From<DMat3>` for `DMat2`.
277 These have been replaced by `Mat2::from_mat3()` and `DMat2::from_mat3()`.
278 * Removed `From<Mat4>` implementation for `Mat3` and `From<DMat4>` for `DMat3`.
279 These have been replaced by `Mat3::from_mat4()` and `DMat3::from_mat4()`.
280 * Removed deprecated `from_slice_unaligned()`, `write_to_slice_unaligned()`,
281 `from_rotation_mat4` and `from_rotation_ypr()` methods.
282
283 ### Added
284
285 * Added `col_mut()` method which returns a mutable reference to a matrix column
286 to all matrix types.
287 * Added `AddAssign`, `MulAssign` and `SubAssign` implementations for all matrix
288 types.
289 * Added `Add` and `Sub` implementations of scalar values for vector types.
290 * Added more `glam_assert!` checks and documented methods where they are used.
291 * Added vector projection and rejection methods `project_onto()`,
292 `project_onto_normalized()`, `reject_from()` and `reject_from_normalized()`.
293 * Added `Mat2::from_mat3()`, `DMat2::from_mat3()`, `Mat3::from_mat4()`,
294 `DMat3::from_mat4()` which create a smaller matrix from a larger one,
295 discarding a final row and column of the input matrix.
296 * Added `Mat3::from_mat2()`, `DMat3::from_mat2()`, `Mat4::from_mat3()` and
297 `DMat4::from_mat3()` which create an affine transform from a smaller linear
298 transform matrix.
299
300 ### Changed
301
302 * Don't support `AsRef` and `AsMut` on SPIR-V targets. Also removed SPIR-V
303 support for some methods that used `as_ref()`, including `hash()`. Not a
304 breaking change as these methods would not have worked anyway.
305
306 ### Fixed
307
308 * Fixed compile time alignment checks failing on i686 targets.
309
310 ## [0.16.0] - 2021-06-06
311
312 ### Breaking changes
313
314 * `sprirv-std` dependency was removed, rust-gpu depends on glam internally
315 again for now.
316 * Added `must_use` attribute to all `inverse()`, `normalize()`,
317 `try_normalize()`, `transpose()` and `conjugate()` methods.
318
319 ### Added
320
321 * Added `fract()` method to float vector types which return a vector containing
322 `self - self.floor()`.
323 * Added optional support for the `approx` crate. Note that all glam types
324 implement their own `abs_diff_eq()` method without requiring the `approx`
325 dependency.
326
327 ## [0.15.2] - 2021-05-20
328
329 ### Added
330
331 * Added `from_cols()` methods to affine types.
332 * Added methods for reading and writing affine types from and to arrays and
333 slices, including `from_cols_array()`, `to_cols_array()`,
334 `from_cols_array_2d()`, `to_cols_array_2d()`, `from_cols_slice()` and
335 `write_cols_to_slice()`.
336 * Added `core::fmt::Display` trait implementations for affine types.
337 * Added `core::ops::Add`, `core::ops::Mul` scalar and `core::ops::Sub` trait
338 implementations for affine types.
339 * Added `from_array()` methods to quaternion types.
340
341 ### Changed
342
343 * Renamed vector and quaternion `from_slice_unaligned()` and
344 `write_to_slice_unaligned()` methods to `from_slice()` and
345 `write_to_slice()`.
346 * Removed usage of `_mm_rcp_ps` from SSE2 implementation of `Quat::slerp` as
347 this instruction is not deterministic between Intel and AMD chips.
348
349 ## [0.15.1] - 2021-05-14
350
351 ### Changed
352
353 * Disable `const_assert_eq!` size and alignment checks for SPIR-V targets.
354
355 ## [0.15.0] - 2021-05-14
356
357 ### Breaking changes
358
359 * Removed `PartialOrd` and `Ord` trait implementations for all `glam` types.
360 * Removed deprecated `zero()`, `one()`, `unit_x()`, `unit_y()`, `unit_z()`,
361 `unit_w()`, `identity()` and `Mat2::scale()` methods.
362 * Remove problematic `Quat` `From` trait conversions which would allow creating
363 a non-uniform quaternion without necessarily realising, including from
364 `Vec4`, `(x, y, z, w)` and `[f32; 4]`.
365
366 ### Added
367
368 * Added `EulerRot` enum for specifying Euler rotation order and
369 `Quat::from_euler()`, `Mat3::from_euler()` and `Mat4::from_euler()` which
370 support specifying a rotation order and angles of rotation.
371 * Added `Quat::to_euler()` method for extracting Euler angles.
372 * Added `Quat::from_vec4()` which is an explicit method for creating a
373 quaternion from a 4D vector. The method does not normalize the resulting
374 quaternion.
375 * Added `Mat3A` type which uses `Vec3A` columns. It is 16 byte aligned and
376 contains internal padding but it generally faster than `Mat3` for most
377 operations if SIMD is available.
378 * Added 3D affine transform types `Affine3A` and `DAffine3`. These are more
379 efficient than using `Mat4` and `DMat4` respectively when working with 3D
380 affine transforms.
381 * Added 2D affine transform types `Affine2` and `DAffine2`. These are more
382 efficient than using `Mat3` and `DMat3` respectively when working with 2D
383 affine transforms.
384 * Added `Quat::from_affine3()` to create a quaternion from an affine transform
385 rotation.
386 * Added explicit `to_array()` method to vector types to better match the matrix
387 methods.
388
389 ### Changed
390
391 * Deprecated `Quat::from_rotation_ypr()`, `Mat3::from_rotation_ypr()` and
392 `Mat4::from_rotation_ypr()` in favor of new `from_euler()` methods.
393 * Deprecated `Quat::from_rotation_mat3()` and `Quat::from_rotation_mat4()` in
394 favor of new `from_mat3` and `from_mat4` methods.
395 * Deprecated `TransformSRT` and `TransformRT` which are under the
396 `transform-types` feature. These will be moved to a separate experimental
397 crate.
398 * Updated `spirv-std` dependency version to `0.4.0-alpha7`.
399
400 ## [0.14.0] - 2021-04-09
401
402 ### Breaking changes
403
404 * Minimum Supported Version of Rust bumped to 1.45.0 for the `spirv-std`
405 dependency.
406
407 ### Added
408
409 * Added `AXES[]` constants to all vector types. These are arrays containing the
410 unit vector for each axis.
411 * Added quaternion `from_scaled_axis` and `to_scaled_axis` methods.
412
413 ### Changed
414
415 * Updated dependency versions of `bytemuck` to `1.5`, `rand` to `0.8`,
416 `rand_xoshiro` to `0.6` and `spirv-std` to `0.4.0-alpha4`.
417
418 ## [0.13.1] - 2021-03-24
419
420 ### Added
421
422 * Added vector `clamp()` functions.
423 * Added matrix column and row accessor methods, `col()` and `row()`.
424 * Added SPIR-V module and dependency on `spirv-std` for the SPIR-V target.
425 * Added matrix truncation from 4x4 to 3x3 and 3x3 to 2x2 via `From` impls.
426
427 ### Changed
428
429 * Documentation corrections and improvements.
430
431 ## [0.13.0] - 2021-03-04
432
433 ### Breaking Changes
434
435 * The behavior of the 4x4 matrix method `transform_point3()` was changed to not
436 perform the perspective divide. This is an optimization for use with affine
437 transforms where perspective correction is not required. The
438 `project_point3()` method was added for transforming points by perspective
439 projections.
440 * The 3x3 matrix `from_scale()` method was changed to
441 create a affine transform containing a 2-dimensional non-uniform scale to be
442 consistent with the 4x4 matrix version. The
443 `from_diagonal()` method can be used to create a 3x3 scale matrix.
444 * The 3x3 matrix methods `transform_point2_as_vec3a`,
445 `transform_vector2_as_vec3a` and `mul_vec3_as_vec3a` were unintentionally
446 `pub` and are no longer publicly accessible.
447
448 ### Added
449
450 * Added `Vec2::X`, `Vec4::W` etc constants as a shorter versions of `unit_x()`
451 and friends.
452 * Added `ONE` constants for vectors.
453 * Added `IDENTITY` constants for `Mat2`, `Mat3`, `Mat4` and `Quat`.
454 * Added `ZERO` constant for vectors and matrices.
455 * Added `clamp_length()`, `clamp_length_max()`, and `clamp_length_min` methods
456 for `f32` and `f64` vector types.
457 * Added `try_normalize()` and `normalize_or_zero()` for all real vector types.
458 * Added `from_diagonal()` methods to all matrix types for creating diagonal
459 matrices from a vector.
460 * Added `angle_between()`, `from_rotation_arc()` and
461 `from_rotation_arc_colinear()` to quaternion types.
462 * Added quaternion `inverse()` which assumes the quaternion is already
463 normalized and returns the conjugate.
464 * Added `from_translation()` and `from_angle()` methods to 3x3 matrix types.
465 * Added `project_point3()` method to 4x4 matrix types. This method is for
466 transforming 3D vectors by perspective projection transforms.
467 * Added `Eq` and `Hash` impls for integer vector types.
468
469 ### Changed
470
471 * Deprecated `::unit_x/y/z()`, `::zero()`, `::one()`, `::identity()` functions
472 in favor of constants.
473
474 ## [0.12.0] - 2021-01-15
475
476 ### Breaking Changes
477
478 * `Vec2Mask`, `Vec3Mask` and `Vec4Mask` have been replaced by `BVec2`, `BVec3`,
479 `BVec3A`, `BVec4` and `BVec4A`. These types are used by some vector methods
480 and are not typically referenced directly.
481
482 ### Added
483
484 * Added `f64` primitive type support
485 * vectors: `DVec2`, `DVec3` and `DVec4`
486 * square matrices: `DMat2`, `DMat3` and `DMat4`
487 * a quaternion type: `DQuat`
488 * Added `i32` primitive type support
489 * vectors: `IVec2`, `IVec3` and `IVec4`
490 * Added `u32` primitive type support
491 * vectors: `UVec2`, `UVec3` and `UVec4`
492 * Added `bool` primitive type support
493 * vectors: `BVec2`, `BVec3` and `BVec4`
494
495 ### Removed
496
497 * `build.rs` has been removed.
498
499 ## [0.11.3] - 2020-12-29
500
501 ### Changed
502
503 * Made `Vec3` `repr(simd)` for `spirv` targets.
504
505 ### Added
506
507 * Added `From<(Vec2, f32)>` for `Vec3` and `From<(Vec3, f32)` for `Vec4`.
508
509 ## [0.11.2] - 2020-12-04
510
511 ### Changed
512
513 * Compilation fixes for Rust 1.36.0.
514
515 ## [0.11.1] - 2020-12-03
516
517 ### Added
518
519 * Added support for the [Rust GPU](https://github.com/EmbarkStudios/rust-gpu)
520 SPIR-V target architecture.
521
522 ## [0.11.0] - 2020-11-26
523
524 ### Added
525
526 * Added `is_finite` method to all types which returns `true` if, and only if,
527 all contained elements are finite.
528 * Added `exp` and `powf` methods for all vector types.
529
530 ### Changed
531
532 * The `is_nan` method now returns a `bool` to match the new `is_finite` method
533 and to be consistent with the same methods on the `f32` and `f64` primitive
534 types.
535 * Renamed `is_nan` which returns a vector mask to `is_nan_mask`.
536 * Don't use the `cfg` definitions added by `build.rs` for defining structs as
537 `rust-analyzer` is not aware of them.
538
539 ### Removed
540
541 * Removed deprecated accessor methods.
542
543 ## [0.10.2] - 2020-11-17
544
545 ### Changed
546
547 * Deprecated element accessor members `.x()`, `.x_mut()`, `.set_x()`, etc. on
548 vector and quaternion types.
549 * Deprecated column accessor members `.x_axis()`, `.x_axis_mut()`,
550 `.set_x_axis()`, etc. on matrix types.
551
552 ## [0.10.1] - 2020-11-15
553
554 ### Added
555
556 * Added the `Vec2::perp` method which returns a `Vec2` perpendicular to `self`.
557
558 ### Changed
559
560 * `Vec2` and `Vec3` types were changed to use public named fields for `.x`,
561 `.y`, and `.z` instead of accessors.
562 * `Quat`, `Vec3A` and `Vec4` implement `Deref` and `DerefMut` for the new `XYZ`
563 and `XYZW` structs to emulate public named field access.
564 * `Mat3` and `Mat4` had their axis members made public instead of needing
565 accessors.
566 * `Mat2` implements `Deref` and `DerefMut` for the new `XYAxes` struct to
567 emulate public named field access.
568
569 ### Removed
570
571 * Removed deprecated `length_reciprocal` and `sign` methods.
572
573 ### Fixed
574
575 * Adding `glam` as a `no_std` dependency should now work as expected.
576
577 ## [0.10.0] - 2020-10-31
578
579 ### Breaking Changes
580
581 * Changed the return type of `Vec4::truncate` from `Vec3A` to `Vec3`.
582
583 ### Added
584
585 * Added `From` implementations to truncate to narrower vector types, e.g.
586 `Vec4` to `Vec3A`, `Vec3` and `Vec2` and from `Vec3A` and `Vec3` to `Vec2`.
587 * Added swizzles for `Vec4`, `Vec3A`, `Vec3` and `Vec2`. These can be used to
588 reorder elements in the same type and also to create larger or smaller
589 vectors from the given vectors elements.
590 * Added `Quat` operators `Add<Quat>`, `Sub<Quat>`, `Mul<f32>` and `Div<f32`.
591 These are used by other crates for interpolation quaternions along splines.
592 Note that these operations will not return unit length quaternions, thus the
593 results must be normalized before performing other `Quat` operations.
594 * Added `Mat4::transform_point3a` and `Mat4::transform_vector3a`.
595 * Added `AsRef<[f32; 9]>` and `AsMut<[f32; 9]>` trait implementations to `Mat3`.
596 * Added optional `bytemuck` support primarily for casting types to `&[u8]`.
597 * Added support for compiling with `no_std` by disabling the default `std`
598 feature and adding the `libm` feature.
599 * Added `distance` and `distance_squared` methods to `Vec2`, `Vec3`, `Vec3A`
600 and `Vec4`.
601
602 ## [0.9.5] - 2020-10-10
603
604 ### Added
605
606 * `glam` uses SSE2 for some types which prevents constructor functions can not
607 be made `const fn`. To work around this limitation the following macro
608 functions have been added to support creating `const` values of `glam` types:
609 `const_mat2`, `const_mat3`, `const_mat4`, `const_quat`, `const_vec2`,
610 `const_vec3`, `const_vec3a` and `const_vec4`.
611 * Added `is_nan` methods to `Vec2`, `Vec3`, `Vec3A` and `Vec4` which return a
612 mask.
613
614 ## Changed
615
616 * Renamed the vector `reciprocal` and `length_reciprocal` methods to `recip`
617 and `length_recip` to match the Rust standard library naming. The old methods
618 have been deprecated.
619 * Renamed the vector `sign` methods to `signum` match the Rust standard library
620 naming. The new methods now check for `NAN`. The old methods have been
621 deprecated.
622 * Added SSE2 optimized implementations of `Mat4::determinant` and
623 `Mat4::inverse`.
624
625 ### Removed
626
627 * Removed deprecated function `Mat4::perspective_glu_rh`.
628
629 ## [0.9.4] - 2020-08-31
630
631 ### Fixed
632
633 * Fixed `Mat4::transform_point3` to account for homogeneous w coordinate.
634 Previously this would have been incorrect when the resulting homogeneous
635 coordinate was not 1.0, e.g. when transforming by a perspective projection.
636 * Fixed `Mat3::transform_point2` to account for homogeneous z coordinate.
637
638 ## [0.9.3] - 2020-08-11
639
640 ### Added
641
642 * Added `Mat4::perspective_rh`.
643
644 ## [0.9.2] - 2020-07-09
645
646 ### Added
647
648 * Added `Mat3::mul_vec3a` and `Quat::mul_vec3a`.
649
650 ### Changed
651
652 * Changed `Quat::mul_vec3` to accept and return `Vec3` instead of `Vec3A`.
653
654 ## [0.9.1] - 2020-07-01
655
656 ### Added
657
658 * Added `Mat3 * Vec3A` implementation.
659 * Added `Vec3A` benches.
660
661 ### Changed
662
663 * Some documentation improvements around the new `Vec3A` type.
664
665 ## [0.9.0] - 2020-06-28
666
667 ### Added
668
669 * `Vec3` has been split into scalar `Vec3` and 16 byte aligned `Vec3A` types.
670 Only the `Vec3A` type currently uses SIMD optimizations.
671 * `Vec3Mask` has been split into scalar `Vec3Mask` and 16 byte aligned
672 `Vec3AMask` types.
673 * Added `mut` column accessors to all matrix types, e.g. `Mat2::x_axis_mut()`.
674 * Added `From` trait implementations for `Vec3AMask` and `Vec4Mask` to `__m128`.
675
676 ### Changed
677
678 * The `Mat3` type is using the scalar `Vec3` type for storage.
679 * Simplified `Debug` trait output for `Quat`, `Vec4` and `Vec3A`.
680
681 ## Removed
682
683 * Removed the `packed-vec3` feature flag as it is now redundant.
684
685 ## [0.8.7] - 2020-04-28
686
687 ### Added
688
689 * Added `Quat::slerp` - note that this uses a `sin` approximation.
690 * Added `angle_between` method for `Vec2` and `Vec3`.
691 * Implemented `Debug`, `Display`, `PartialEq`, `Eq`, `PartialOrd`, `Ord`,
692 `Hash`, and `AsRef` traits for `Vec2Mask`, `Vec3Mask` and `Vec4Mask`.
693 * Added conversion functions from `Vec2Mask`, `Vec3Mask` and `Vec4Mask` to an
694 array of `[u32]`.
695 * Added `build.rs` to simplify conditional feature compilation.
696
697 ### Changed
698
699 * Increased test coverage.
700
701 ### Removed
702
703 * Removed `cfg-if` dependency.
704
705 ## [0.8.6] - 2020-02-18
706
707 ### Added
708
709 * Added the `packed-vec3` feature flag to disable using SIMD types for `Vec3`
710 and `Mat3` types. This avoids wasting some space due to 16 byte alignment at
711 the cost of some performance.
712 * Added `x_mut`, `y_mut`, `z_mut`, `w_mut` where appropriate to `Vec2`, `Vec3`
713 and `Vec4`.
714 * Added implementation of `core::ops::Index` and `core::ops::IndexMut` for
715 `Vec2`, `Vec3` and `Vec4`.
716
717 ### Changed
718
719 * Merged SSE2 and scalar `Vec3` and `Vec4` implementations into single files
720 using the `cfg-if` crate.
721
722 ## [0.8.5] - 2020-01-02
723
724 ### Added
725
726 * Added projection functions `Mat4::perspective_lh`,
727 `Mat4::perspective_infinite_lh`, `Mat4::perspective_infinite_reverse_lh`,
728 `Mat4::orthgraphic_lh` and `Mat4::orthographic_rh`.
729 * Added `round`, `ceil` and `floor` methods to `Vec2`, `Vec3` and `Vec4`.
730
731 ## [0.8.4] - 2019-12-17
732
733 ### Added
734
735 * Added `Mat4::to_scale_rotation_translation` for extracting scale, rotation and
736 translation from a 4x4 homogeneous transformation matrix.
737 * Added `cargo-deny` GitHub Action.
738
739 ### Changed
740
741 * Renamed `Quat::new` to `Quat::from_xyzw`.
742
743 ## [0.8.3] - 2019-11-27
744
745 ### Added
746
747 * Added `Mat4::orthographic_rh_gl`.
748
749 ### Changed
750
751 * Renamed `Mat4::perspective_glu_rh` to `Mat4::perspective_rh_gl`.
752 * SSE2 optimizations for `Mat2::determinant`, `Mat2::inverse`,
753 `Mat2::transpose`, `Mat3::transpose`, `Quat::conjugate`, `Quat::lerp`,
754 `Quat::mul_vec3`, `Quat::mul_quat` and `Quat::from_rotation_ypr`.
755 * Disabled optimizations to `Mat4::transform_point3` and
756 `Mat4::transform_vector3` as they are probably incorrect and need
757 investigating.
758 * Added missing `#[repr(C)]` to `Mat2`, `Mat3` and `Mat4`.
759 * Benchmarks now store output of functions to better estimate the cost of a
760 function call.
761
762 ### Removed
763
764 * Removed deprecated functions `Mat2::new`, `Mat3::new` and `Mat4::new`.
765
766 ## [0.8.2] - 2019-11-06
767
768 ### Changed
769
770 * `glam_assert!` is no longer enabled by default in debug builds, it can be
771 enabled in any configuration using the `glam-assert` feature or in debug
772 builds only using the `debug-glam-assert` feature.
773
774 ### Removed
775
776 * `glam_assert!`'s checking `lerp` is bounded between 0.0 and 1.0 and that
777 matrix scales are non-zero have been removed.
778
779 ## [0.8.1] - 2019-11-03
780
781 ### Added
782
783 * Added `Display` trait implementations for `Mat2`, `Mat3` and `Mat4`.
784
785 ### Changed
786
787 * Disabled `glam`'s SSE2 `sin_cos` implementation - it became less precise for
788 large angle values.
789 * Reduced the default epsilon used by the `is_normalized!` macro from
790 `std::f32::EPSILON` to `1e-6`.
791
792 ## [0.8.0] - 2019-10-14
793
794 ### Removed
795
796 * Removed the `approx` crate dependency. Each `glam` type has an `abs_diff_eq`
797 method added which is used by unit tests for approximate floating point
798 comparisons.
799 * Removed the `Angle` type. All angles are now `f32` and are expected to
800 be in radians.
801 * Removed the deprecated `Vec2b`, `Vec3b` and `Vec4b` types and the `mask`
802 methods on `Vec2Mask`, `Vec3Mask` and `Vec4Mask`.
803
804 ### Changed
805
806 * The `rand` crate dependency has been removed from default features. This was
807 required for benchmarking but a simple random number generator has been added
808 to the benches `support` module instead.
809 * The `From` trait implementation converting between 1D and 2D `f32` arrays and
810 matrix types have been removed. It was ambiguous how array data would map to
811 matrix columns so these have been replaced with explicit methods
812 `from_cols_array` and `from_cols_array_2d`.
813 * Matrix `new` methods have been renamed to `from_cols` to be consistent with
814 the other methods that create matrices from data.
815 * Renamed `Mat4::perspective_glu` to `Mat4::perspective_glu_rh`.
816
817 ## [0.7.2] - 2019-09-22
818
819 ### Fixed
820
821 * Fixed incorrect projection matrix methods `Mat4::look_at_lh`
822 and `Mat4::look_at_rh`.
823
824 ### Added
825
826 * Added support for building infinite projection matrices, including both
827 standard and reverse depth `Mat4::perspective_infinite_rh` and
828 `Mat4::perspective_infinite_rh`.
829 * Added `Vec2Mask::new`, `Vec3Mask::new` and `Vec4Mask::new` methods.
830 * Implemented `std::ops` `BitAnd`, `BitAndAssign`, `BitOr`, `BitOrAssign`
831 and `Not` traits for `Vec2Mask`, `Vec3Mask` and `Vec4Mask`.
832 * Added method documentation for `Vec4` and `Vec4Mask` types.
833 * Added missing `serde` implementations for `Mat2`, `Mat3` and `Mat4`.
834 * Updated `rand` and `criterion` versions.
835
836 ## [0.7.1] - 2019-07-08
837
838 ### Fixed
839
840 * The SSE2 implementation of `Vec4` `dot` was missing a shuffle, meaning the
841 `dot`, `length`, `length_squared`, `length_reciprocal` and `normalize`
842 methods were sometimes incorrect.
843
844 ### Added
845
846 * Added the `glam_assert` macro which behaves like Rust's `debug_assert` but
847 can be enabled separately to `debug_assert`. This is used to perform
848 asserts on correctness.
849 * Added `is_normalized` method to `Vec2`, `Vec3` and `Vec4`.
850
851 ### Changed
852
853 * Replaced usage of `std::mem::uninitialized` with `std::mem::MaybeUninit`. This
854 change requires stable Rust 1.36.
855 * Renamed `Vec2b` to `Vec2Mask`, `Vec3b` to `Vec3Mask` and `Vec4b` to
856 `Vec4Mask`. Old names are aliased to the new name and deprecated.
857 * Deprecate `VecNMask` `mask` method, use new `bitmask` method instead
858 * Made fallback version of `VecNMask` types the same size and alignment as the
859 SIMD versions.
860 * Added `Default` support to `VecNMask` types, will add more common traits in
861 the future.
862 * Added `#[inline]` to `mat2`, `mat3` and `mat4` functions.
863
864 ## [0.7.0] - 2019-06-28
865
866 ### Added
867
868 * Added `Mat2` into `[f32; 4]`, `Mat3` into `[f32; 9]` and `Mat4` into
869 `[f32; 16]`.
870
871 ### Removed
872
873 * Removed `impl Mul<&Vec2> for Mat2` and `impl Mul<&Vec3> for Vec3` as these
874 don't exist for any other types.
875
876 ## [0.6.1] - 2019-06-22
877
878 ### Changed
879
880 * `Mat2` now uses a `Vec4` internally which gives it some performance
881 improvements when SSE2 is available.
882
883 ## 0.6.0 - 2019-06-13
884
885 ### Changed
886
887 * Switched from row vectors to column vectors
888 * Vectors are now on the right of multiplications with matrices and quaternions.
889
890 [Keep a Changelog]: https://keepachangelog.com/
891 [Semantic Versioning]: https://semver.org/spec/v2.0.0.html
892 [Unreleased]: https://github.com/bitshifter/glam-rs/compare/0.22.0...HEAD
893 [0.22.0]: https://github.com/bitshifter/glam-rs/compare/0.21.3...0.22.0
894 [0.21.3]: https://github.com/bitshifter/glam-rs/compare/0.21.2...0.21.3
895 [0.21.2]: https://github.com/bitshifter/glam-rs/compare/0.21.1...0.21.2
896 [0.21.1]: https://github.com/bitshifter/glam-rs/compare/0.21.0...0.21.1
897 [0.21.0]: https://github.com/bitshifter/glam-rs/compare/0.20.5...0.21.0
898 [0.20.5]: https://github.com/bitshifter/glam-rs/compare/0.20.4...0.20.5
899 [0.20.4]: https://github.com/bitshifter/glam-rs/compare/0.20.3...0.20.4
900 [0.20.3]: https://github.com/bitshifter/glam-rs/compare/0.20.2...0.20.3
901 [0.20.2]: https://github.com/bitshifter/glam-rs/compare/0.20.1...0.20.2
902 [0.20.1]: https://github.com/bitshifter/glam-rs/compare/0.20.0...0.20.1
903 [0.20.0]: https://github.com/bitshifter/glam-rs/compare/0.19.0...0.20.0
904 [0.19.0]: https://github.com/bitshifter/glam-rs/compare/0.18.0...0.19.0
905 [0.18.0]: https://github.com/bitshifter/glam-rs/compare/0.17.3...0.18.0
906 [0.17.3]: https://github.com/bitshifter/glam-rs/compare/0.17.2...0.17.3
907 [0.17.2]: https://github.com/bitshifter/glam-rs/compare/0.17.1...0.17.2
908 [0.17.1]: https://github.com/bitshifter/glam-rs/compare/0.17.0...0.17.1
909 [0.17.0]: https://github.com/bitshifter/glam-rs/compare/0.16.0...0.17.0
910 [0.16.0]: https://github.com/bitshifter/glam-rs/compare/0.15.2...0.16.0
911 [0.15.2]: https://github.com/bitshifter/glam-rs/compare/0.15.1...0.15.2
912 [0.15.1]: https://github.com/bitshifter/glam-rs/compare/0.15.0...0.15.1
913 [0.15.0]: https://github.com/bitshifter/glam-rs/compare/0.14.0...0.15.0
914 [0.14.0]: https://github.com/bitshifter/glam-rs/compare/0.13.1...0.14.0
915 [0.13.1]: https://github.com/bitshifter/glam-rs/compare/0.13.0...0.13.1
916 [0.13.0]: https://github.com/bitshifter/glam-rs/compare/0.12.0...0.13.0
917 [0.12.0]: https://github.com/bitshifter/glam-rs/compare/0.11.3...0.12.0
918 [0.11.3]: https://github.com/bitshifter/glam-rs/compare/0.11.2...0.11.3
919 [0.11.2]: https://github.com/bitshifter/glam-rs/compare/0.11.1...0.11.2
920 [0.11.1]: https://github.com/bitshifter/glam-rs/compare/0.11.0...0.11.1
921 [0.11.0]: https://github.com/bitshifter/glam-rs/compare/0.10.2...0.11.0
922 [0.10.2]: https://github.com/bitshifter/glam-rs/compare/0.10.1...0.10.2
923 [0.10.1]: https://github.com/bitshifter/glam-rs/compare/0.10.0...0.10.1
924 [0.10.0]: https://github.com/bitshifter/glam-rs/compare/0.9.5...0.10.0
925 [0.9.5]: https://github.com/bitshifter/glam-rs/compare/0.9.4...0.9.5
926 [0.9.4]: https://github.com/bitshifter/glam-rs/compare/0.9.3...0.9.4
927 [0.9.3]: https://github.com/bitshifter/glam-rs/compare/0.9.2...0.9.3
928 [0.9.2]: https://github.com/bitshifter/glam-rs/compare/0.9.1...0.9.2
929 [0.9.1]: https://github.com/bitshifter/glam-rs/compare/0.9.0...0.9.1
930 [0.9.0]: https://github.com/bitshifter/glam-rs/compare/0.8.7...0.9.0
931 [0.8.7]: https://github.com/bitshifter/glam-rs/compare/0.8.6...0.8.7
932 [0.8.6]: https://github.com/bitshifter/glam-rs/compare/0.8.5...0.8.6
933 [0.8.5]: https://github.com/bitshifter/glam-rs/compare/0.8.4...0.8.5
934 [0.8.4]: https://github.com/bitshifter/glam-rs/compare/0.8.3...0.8.4
935 [0.8.3]: https://github.com/bitshifter/glam-rs/compare/0.8.2...0.8.3
936 [0.8.2]: https://github.com/bitshifter/glam-rs/compare/0.8.1...0.8.2
937 [0.8.1]: https://github.com/bitshifter/glam-rs/compare/0.8.0...0.8.1
938 [0.8.0]: https://github.com/bitshifter/glam-rs/compare/0.7.2...0.8.0
939 [0.7.2]: https://github.com/bitshifter/glam-rs/compare/0.7.1...0.7.2
940 [0.7.1]: https://github.com/bitshifter/glam-rs/compare/0.7.0...0.7.1
941 [0.7.0]: https://github.com/bitshifter/glam-rs/compare/0.6.1...0.7.0
942 [0.6.1]: https://github.com/bitshifter/glam-rs/compare/0.6.0...0.6.1