Commit graph Crafter.Math/interfaces/Crafter.Math-MatrixRowMajor.cppm
Author SHA1 Message Date
087c8b32c3
feat: quaternion operations, and transforms that mean the same in 4x4 and 4x3
- A 4-vector doubles as a unit quaternion in (x, y, z, w) order:
  QuanternionMultiply, QuanternionConjugate, QuanternionFromAxisAngle,
  QuanternionFromUnitVectors (shortest arc), QuanternionNlerp and
  QuanternionSlerp, next to the existing QuanternionFromBasis.
- MatrixRowMajor gains Rotation (from a quaternion), TRS, InverseAffine,
  Transpose and Decompose. The 4x4 transforms row vectors and the 4x3
  column vectors (the VkTransformMatrixKHR layout); each of these means the
  same transform in both. The 4x3 Rotation copied the 4x4's rows, which
  rotated by the inverse.
- The static Normalize no longer assumes three components.
- Tests: Quaternion, and Matrix extended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:07:06 +02:00
02af551776 SPDX license update 2026-07-22 18:01:26 +02:00
f0becd1582 packed intersection and matrix 2026-05-18 19:57:40 +02:00
ad5ba21b4d matrix operations 2026-05-18 18:03:20 +02:00
55a319a6ac OBB OBB test 2026-03-04 15:57:34 +01:00
20ecd2ab9d minor rewrite 2026-02-11 02:52:03 +01:00
8639deac1e update 2026-02-05 02:55:08 +01:00
3698fd4a64 update 2026-02-05 02:46:19 +01:00
5ffdbb2265 update 2026-02-05 02:45:27 +01:00
5b9b9dc472 added alignment 2026-02-05 01:18:05 +01:00
cccec84de7 shuffle 2026-01-29 20:20:24 +01:00
Renamed from Crafter.Math-MatrixRowMajor.cppm (Browse further)