Debian Codegraph @

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