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