aboutsummaryrefslogtreecommitdiff
path: root/core/math
Commit message (Collapse)AuthorAgeFilesLines
* Keep -vet happygingerBill2023-07-311-12/+12
|
* Remove math usage of raw LLVM intrinsic prototypesgingerBill2023-07-071-16/+82
|
* Begin work on `core:math/cmplx`gingerBill2023-06-283-0/+1195
| | | | `complex*` types only at the moment, `quaternion*` types coming later
* Add `math.sincos`gingerBill2023-06-281-0/+308
|
* Actually add math.hypotgingerBill2023-06-281-33/+39
|
* Add `math.hypot`gingerBill2023-06-281-0/+68
|
* Replace `x in &y` Use `&v in y` syntax through core & vendor for ↵gingerBill2023-06-264-7/+7
| | | | `switch`/`for` statements
* Use positional and named arguments within the core librarygingerBill2023-06-211-1/+1
|
* Document core:math/rand and add 'possible output'Lucas Perlind2023-05-311-23/+635
| | | | | | Possible output allows us to just type check a test and have some sort of output field in the docs but not actually verify it matches stdout
* Add `@(require_results)` to `core:math/ease`gingerBill2023-05-221-41/+76
|
* Add `@(require_results)` and `contextless` to procedures in `core:math/bits`gingerBill2023-05-221-84/+161
|
* Add `@(require_results)` to `core:math/fixed`gingerBill2023-05-221-0/+11
|
* 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
|
* Add `@(require_results)` to `core:math/noise`gingerBill2023-05-221-0/+9
|
* Add `@(require_results)` to `core:math/rand`gingerBill2023-05-227-7/+49
|
* Add @(require_results) to `core:math` proceduresgingerBill2023-05-227-335/+488
|
* 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.
* Add parentheses around `or_return` uses in an unary expressiongingerBill2023-04-271-6/+6
|
* Fix #2389Mostafa Saad2023-03-171-4/+4
|
* Fix typo in linalg.anySaid Al Attrach2022-12-131-1/+1
|
* Add `math.pow10`gingerBill2022-11-291-0/+86
|
* Improve core:math procedures and add loads of unit testsgingerBill2022-11-291-12/+42
|
* Fix `atan2` by swapping the arguments internallygingerBill2022-11-291-1/+1
|
* Implement `asin` in native OdingingerBill2022-11-041-2/+103
|
* Implement `acos` in native OdingingerBill2022-11-041-5/+106
|
* Fix atrig functionsgingerBill2022-11-041-3/+3
|
* Add doc.odingingerBill2022-11-031-0/+2
|
* Merge pull request #1544 from FancyKillerPanda/build_ignoregingerBill2022-11-032-3/+1
|\ | | | | Changed `//+ignore` to `//+build ignore` and emit a warning for unknown tags
| * Changed //+ignore to //+build ignore.FancyKillerPanda2022-02-242-3/+1
| |
* | Add `core:math/rand.choice`Jeroen van Rijn2022-10-231-0/+9
| |
* | Fix #2052 typo in linalg.max_singlegingerBill2022-09-171-1/+1
| |
* | Add the builtin procedures `abs`, `clamp` `min`, `max` to `core:math` as aliasesgingerBill2022-09-081-0/+6
| |
* | fix ease.odin compile error from missing commaPhil2022-08-311-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
* | Correct assignmentgingerBill2022-08-151-2/+2
| |
* | Add `math.divmod` and `math.floor_divmod`gingerBill2022-08-151-0/+19
| |
* | fixed math.log2blake2022-08-061-10/+17
| |
* | fix some typoscui fliter2022-08-051-1/+1
| | | | | | | | Signed-off-by: cui fliter <imcusg@gmail.com>
* | 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 } ```
* | fix parameter for atan2 in procedure asinYeongju Kang2022-07-221-1/+1
| |
* | flux fixed key deletion and generic in `flux_to`Michael Kutowski2022-06-281-11/+23
| |
* | wrong variable names in functionshfr42022-06-141-5/+5
| |
* | Add `_system_random` for DarwingingerBill2022-05-151-0/+21
| |
* | Add `rand.init_as_system` to allow for system-level based random number ↵gingerBill2022-05-153-0/+56
| | | | | | | | generation
* | Add Gompertz DistributiongingerBill2022-05-151-2/+22
| |
* | Add more distributionsgingerBill2022-05-151-0/+41
| |
* | Correct log normalgingerBill2022-05-151-1/+1
| |