aboutsummaryrefslogtreecommitdiff
path: root/core/math/linalg
Commit message (Collapse)AuthorAgeFilesLines
* Fixed issue where the linalg.quaternion_from_forward_and_up could return ↵Mathias Mohn Mørch2025-10-301-3/+3
| | | | incorrect values in certain scenarioes
* Add half support to all proc groups and add ashalf proc groupNick Driscoll2025-10-282-2/+759
|
* Add all half scalar, vector, and matrix typesNick Driscoll2025-10-281-0/+25
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-093-3/+3
|
* Package lines for `core:math` and more.Jeroen van Rijn2025-10-093-3/+3
|
* Fix srgb <-> linear rgb conversion functions in `core:math/linalg` and add ↵Franz Hoeltermann2025-10-021-60/+75
| | | | implementations for vector3
* Fix 2x2 matrix inverses in specific.odinprescientmoon2025-01-231-6/+6
|
* Rename adjugate to cofactor to keep existing usages for inverse and ↵Sebastian Pahnke2024-12-283-54/+198
| | | | determinant correct and add new adjugate procedures
* Merge pull request #4589 from Pariatech/add-trunc-to-linalg-glslgingerBill2024-12-182-0/+18
|\ | | | | Add trunc to glsl linalg
| * add trunc to glsl linalgGabriel Pariat2024-12-172-0/+18
| |
* | Add `linalg.clamp_length(vector, max_length) -> clamped_vector`Bazzagibbs2024-12-021-0/+12
|/
* Fix typo in Quaternion dot productDudejoe8702024-11-171-3/+3
|
* Remove `distinct` from `core:math/linalg/(glsl|hlsl)` typesgingerBill2024-09-182-109/+109
|
* Clamp dot in `angle_between` to avoid precision errors.Jeroen van Rijn2024-07-281-1/+2
| | | | Fixes #3978
* Require `base:runtime` import in `core:math/linalg`Feoramund2024-06-281-1/+1
|
* Fix #3726gingerBill2024-06-101-3/+3
|
* Make use of `runtime.Raw_*` types in `core:math/linalg`Feoramund2024-06-031-15/+10
|
* fix pitch_from_quaternionshashank2024-05-273-3/+3
|
* fix(linalg/glsl): incorrect quat by vector3 multiplicationIllusionMan12122024-04-281-2/+2
|
* Fix #3323gingerBill2024-03-241-1/+3
|
* Properly initialize return matrices in linalg.orthonormalizespindlebink2024-03-091-0/+6
|
* Remove bounds checking on a lot of linalgLucas Perlind2024-02-132-121/+121
|
* Revert "Change minor/adjoint to be `row, col` from `c, r` to be consistent ↵Lucas Perlind2024-02-132-172/+172
| | | | | | with `[row, col]` syntax; Add `#no_bounds_check` were appropriate" This reverts commit 5dd2e38affc90b075a19777b044f98489235f24a.
* Split out `linalg.identity` between matrices and array-based matrixgingerBill2024-02-121-1/+11
|
* Change minor/adjoint to be `row, col` from `c, r` to be consistent with ↵gingerBill2024-02-122-172/+172
| | | | `[row, col]` syntax; Add `#no_bounds_check` were appropriate
* Add `angle_between` and `matrix2_rotate`gingerBill2024-02-062-0/+62
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-285-8/+8
|
* Move matrix related procedures to the different `linalg` packagesgingerBill2024-01-284-47/+829
|
* Fix linalg shadowing errorLucas Perlind2024-01-091-3/+3
|
* Remove `distinct` from the specific typesgingerBill2024-01-051-64/+64
|
* Enforce naming the parameters with `builtin.quaternion` to reduce confusiongingerBill2024-01-051-1/+1
|
* Add `@(require_results)` to `core:math/linalg`'s `glsl` and `hlsl` packagesgingerBill2023-05-224-1265/+1307
|
* Add "contextless" to `core:math/linalg` proceduresgingerBill2023-05-227-620/+620
|
* Add `@(require_results)` `core:math/linalg` proceduresgingerBill2023-05-227-24/+638
|
* Fix #2545 - Typo in vec4 lerping proceduresKyleRhoads452023-05-181-2/+2
|
* linalg/extended radians and degrees fixedJesse Stiller2023-04-271-4/+5
| | | | Renamed them to `to_degrees` and `to_radians` to match the same scalar functions in math--plus it helps clarify exactly what they do. And fixed a bug where the array overloads weren't being indexed.
* Fix #2389Mostafa Saad2023-03-171-4/+4
|
* Fix typo in linalg.anySaid Al Attrach2022-12-131-1/+1
|
* Add doc.odingingerBill2022-11-031-0/+2
|
* Fix #2052 typo in linalg.max_singlegingerBill2022-09-171-1/+1
|
* Change math/linalg/general.odin vector_length and vector_normalize to only ↵Phil2022-08-151-3/+3
| | | | accept vectors of float types rather than any numeric type
* fix `linalg.angle_from_quaternion`Luxko2022-07-231-3/+3
| | | | | | | | | | | | | | fixes #1894 .2: ```odin package laa import "core:fmt" import la "core:math/linalg" main:: proc() { angle := f32(0.5) quat := la.quaternion_angle_axis_f32(angle,la.Vector3f32{0,0,1}) fmt.printf("retreived: %0.8f\n", la.angle_from_quaternion(quat)) // should be 0.5, but wasn't } ```
* wrong variable names in functionshfr42022-06-141-5/+5
|
* Fix #1644gingerBill2022-04-261-3/+3
|
* Add `round` to linalg_glsl_math.odingingerBill2022-01-301-0/+2
|
* Added round to HLSL and GLSL, and isinf/isfinite + isnan to HLSLJesse Stiller2022-01-303-0/+104
|
* Extraneous parameters in hlsl/glsl.saturate removedJesse Stiller2022-01-172-33/+32
| | | | | | This is a breaking change to anyone who used glsl/hlsl.saturate functions prior, but the y and z parameters never were used and do not conform to how the saturate function works in HLSL: https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-saturate Note however GLSL does not contain a saturate function, but removing it does not accomplish anything good IMO.
* Fix polymorphic matrix element with a minor hackgingerBill2022-01-101-4/+4
|
* Update matrix types to be the native Odin `matrix` typesgingerBill2022-01-106-2164/+2103
|
* Fix quaternion castinggingerBill2022-01-031-2/+2
|