Commit Graph

125 Commits

Author SHA1 Message Date
jakubtomsu
6a206d9bce tabs... 2026-05-18 20:05:30 +02:00
jakubtomsu
b57db64c8e linalg: gram schmidt in any order 2026-05-18 19:34:53 +02:00
gingerBill
724ce14677 More improvements to linalg functions 2026-05-11 15:44:12 +01:00
gingerBill
ad940e40ca Add linalg.matrix_pseudo_inverse 2026-04-28 15:41:50 +01:00
gingerBill
1f08e81b37 Add more general matrix calls up to 8x8 2026-04-28 15:31:43 +01:00
gingerBill
d6aa1fe079 More inlining of matrix4x4 operations 2026-04-28 13:39:49 +01:00
gingerBill
c66ab0ade2 Add matrix_inverse_gauss_jordan matrix_inverse_lu_decomposition matrix_determinant_generic 2026-04-28 13:30:49 +01:00
gingerBill
6e04bb8a8b Merge pull request #6607 from andzdroid/patch-5
core/math/linalg: Fix negated quaternions in angle_from_quaternion
2026-04-28 11:11:44 +01:00
gingerBill
c92c6edbb6 Inline array casts 2026-04-28 11:08:46 +01:00
andzdroid
494ecad737 core/math/linalg: Fix negated quaternions in angle_from_quaternion 2026-04-23 21:27:50 +01:00
gingerBill
b0ce87eef8 Update to use the new casting operation 2026-04-23 10:45:27 +01:00
jakubtomsu
e15230c194 remove force_inline from vector_dot 2026-04-10 17:21:03 +02:00
jakubtomsu
d5e4e61c1c implement floor, ceil and trunc with SIMD 2026-04-10 17:10:24 +02:00
jakubtomsu
47371791b3 faster vector_dot and vector_cross3 2026-04-10 17:08:40 +02:00
gingerBill
6da4a6746f Add linalg.to_f16 2026-02-17 09:41:22 +00:00
Mathias Mohn Mørch
9a321befd4 Fixed issue where the linalg.quaternion_from_forward_and_up could return incorrect values in certain scenarioes 2025-10-30 20:35:35 +01:00
Nick Driscoll
5fa41f9f03 Add half support to all proc groups and add ashalf proc group 2025-10-28 21:42:08 -04:00
Nick Driscoll
f3b6ad01ab Add all half scalar, vector, and matrix types 2025-10-28 21:42:08 -04:00
Jeroen van Rijn
7a9ea3ee6d Further overhaul of package line comments. 2025-10-09 23:05:29 +02:00
Jeroen van Rijn
c4c2431997 Package lines for core:math and more. 2025-10-09 19:56:21 +02:00
Franz Hoeltermann
a39697d84c Fix srgb <-> linear rgb conversion functions in core:math/linalg and add implementations for vector3 2025-10-02 17:31:59 +02:00
prescientmoon
5a29e80bc3 Fix 2x2 matrix inverses in specific.odin 2025-01-23 05:56:27 +01:00
Sebastian Pahnke
f23e226854 Rename adjugate to cofactor to keep existing usages for inverse and determinant correct and add new adjugate procedures 2024-12-28 10:29:43 +01:00
gingerBill
61368d942e Merge pull request #4589 from Pariatech/add-trunc-to-linalg-glsl
Add trunc to glsl linalg
2024-12-18 21:20:17 +00:00
Gabriel Pariat
e0b7bfd21e add trunc to glsl linalg 2024-12-17 13:06:59 -05:00
Bazzagibbs
4b76568596 Add linalg.clamp_length(vector, max_length) -> clamped_vector 2024-12-02 11:58:36 +11:00
Dudejoe870
4d22f1f544 Fix typo in Quaternion dot product 2024-11-17 10:42:59 -06:00
gingerBill
e17dfcf7a2 Remove distinct from core:math/linalg/(glsl|hlsl) types 2024-09-18 00:13:34 +01:00
Jeroen van Rijn
24e6f16f4a Clamp dot in angle_between to avoid precision errors.
Fixes #3978
2024-07-28 15:00:29 +02:00
Feoramund
2af121752a Require base:runtime import in core:math/linalg 2024-06-28 11:34:35 -04:00
gingerBill
c1e81dc14d Fix #3726 2024-06-10 15:05:24 +01:00
Feoramund
88598c2c64 Make use of runtime.Raw_* types in core:math/linalg 2024-06-03 15:58:33 -04:00
shashank
fb6248925a fix pitch_from_quaternion 2024-05-27 23:38:50 +05:30
IllusionMan1212
1f5f417116 fix(linalg/glsl): incorrect quat by vector3 multiplication 2024-04-28 21:44:34 +02:00
gingerBill
398af659e5 Fix #3323 2024-03-24 13:33:30 +00:00
spindlebink
b2e7eb4db4 Properly initialize return matrices in linalg.orthonormalize 2024-03-09 09:10:25 -06:00
Lucas Perlind
6df07a2c0a Remove bounds checking on a lot of linalg 2024-02-13 10:23:29 +11:00
Lucas Perlind
c0d407a2b4 Revert "Change minor/adjoint to be row, col from c, r to be consistent with [row, col] syntax; Add #no_bounds_check were appropriate"
This reverts commit 5dd2e38aff.
2024-02-13 10:13:34 +11:00
gingerBill
900fe95ba0 Split out linalg.identity between matrices and array-based matrix 2024-02-12 12:08:43 +00:00
gingerBill
5dd2e38aff Change minor/adjoint to be row, col from c, r to be consistent with [row, col] syntax; Add #no_bounds_check were appropriate 2024-02-12 11:54:24 +00:00
gingerBill
b0675358c3 Add angle_between and matrix2_rotate 2024-02-06 14:09:05 +00:00
gingerBill
3e7e779abf Replace core:* to base:* where appropriate 2024-01-28 22:18:51 +00:00
gingerBill
f67691c457 Move matrix related procedures to the different linalg packages 2024-01-28 21:28:54 +00:00
Lucas Perlind
67d5b97ff9 Fix linalg shadowing error 2024-01-09 10:24:12 +11:00
gingerBill
b408ec6bac Remove distinct from the specific types 2024-01-05 14:48:39 +00:00
gingerBill
0b83e3dae5 Enforce naming the parameters with builtin.quaternion to reduce confusion 2024-01-05 14:29:14 +00:00
gingerBill
396debb9cb Add @(require_results) to core:math/linalg's glsl and hlsl packages 2023-05-22 12:11:18 +01:00
gingerBill
c4cb2f2378 Add "contextless" to core:math/linalg procedures 2023-05-22 12:07:37 +01:00
gingerBill
74ce99e0d7 Add @(require_results) core:math/linalg procedures 2023-05-22 12:05:56 +01:00
KyleRhoads45
87a1792677 Fix #2545 - Typo in vec4 lerping procedures 2023-05-18 13:19:22 -07:00