Debian Codegraph @

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