Debian Codegraph @

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