Said Al Attrach
70e48e39a4
Fix typo in linalg.any
2022-12-13 12:18:58 +01:00
gingerBill
2127dc56b1
Add math.pow10
2022-11-29 14:31:56 +00:00
gingerBill
0c25f7cdc5
Improve core:math procedures and add loads of unit tests
2022-11-29 11:39:44 +00:00
gingerBill
e5c243ee93
Fix atan2 by swapping the arguments internally
2022-11-29 09:19:45 +00:00
gingerBill
92e406cef0
Implement asin in native Odin
2022-11-04 14:30:18 +00:00
gingerBill
269913ede0
Implement acos in native Odin
2022-11-04 14:26:31 +00:00
gingerBill
ff36b754cb
Fix atrig functions
2022-11-04 13:53:28 +00:00
gingerBill
df19c48da8
Add doc.odin
2022-11-03 13:36:00 +00:00
gingerBill
f7211408fc
Merge pull request #1544 from FancyKillerPanda/build_ignore
...
Changed `//+ignore` to `//+build ignore` and emit a warning for unknown tags
2022-11-03 12:58:26 +00:00
Jeroen van Rijn
a51943e27f
Add core:math/rand.choice
2022-10-23 04:18:58 +02:00
gingerBill
320b84df4f
Fix #2052 typo in linalg.max_single
2022-09-17 10:20:52 +01:00
gingerBill
39728b8bfb
Add the builtin procedures abs, clamp min, max to core:math as aliases
2022-09-08 15:08:53 +01:00
Phil
8482f943ea
fix ease.odin compile error from missing comma
2022-08-31 14:14:06 -07:00
Phil
9064ebfe97
Change math/linalg/general.odin vector_length and vector_normalize to only accept vectors of float types rather than any numeric type
2022-08-15 16:45:54 -07:00
gingerBill
208f168564
Correct assignment
2022-08-15 16:31:59 +01:00
gingerBill
737bccbd5e
Add math.divmod and math.floor_divmod
2022-08-15 16:31:43 +01:00
blake
b2b0043875
fixed math.log2
2022-08-06 06:19:47 -04:00
cui fliter
dc8b7a0eb8
fix some typos
...
Signed-off-by: cui fliter <imcusg@gmail.com >
2022-08-05 20:10:20 +08:00
Luxko
00e704b216
fix linalg.angle_from_quaternion
...
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
}
```
2022-07-23 00:59:45 +08:00
Yeongju Kang
4e8bc0786d
fix parameter for atan2 in procedure asin
2022-07-22 15:48:06 +09:00
Michael Kutowski
b313d09c2c
flux fixed key deletion and generic in flux_to
2022-06-28 18:27:52 +02:00
hfr4
30b7c8ad66
wrong variable names in functions
2022-06-14 18:20:38 +02:00
gingerBill
4eba2bb8d9
Add _system_random for Darwin
2022-05-15 23:46:32 +01:00
gingerBill
2a58bceb56
Add rand.init_as_system to allow for system-level based random number generation
2022-05-15 23:43:20 +01:00
gingerBill
fdcf08410c
Add Gompertz Distribution
2022-05-15 23:03:01 +01:00
gingerBill
5142955f00
Add more distributions
2022-05-15 22:58:39 +01:00
gingerBill
500150b12a
Correct log normal
2022-05-15 22:52:11 +01:00
gingerBill
50ddd8dd26
Fix typo
2022-05-15 22:45:05 +01:00
gingerBill
6c6de2a07d
Move distributions to a separate file
2022-05-15 22:20:25 +01:00
gingerBill
be2c7b5c9b
Add numerous different random distribution procedures
2022-05-15 21:53:16 +01:00
gingerBill
c81fd2e5dd
Fix #1644
2022-04-26 11:45:46 +01:00
Jeroen van Rijn
9ea45d35db
[ease] Fix flux_stop.
2022-03-31 12:53:04 +02:00
Jeroen van Rijn
b1c2c0ea7a
[ease] Flux fixups.
2022-03-27 16:49:22 +02:00
Michael Kutowski
880d330cca
update delay to use deltatime, add time left
2022-03-27 16:34:00 +02:00
Michael Kutowski
d2ff6f424d
add math easing package
2022-03-27 11:32:46 +02:00
Stanislav Ch. Nikolov
5e04ddd653
Fix #1627 : Remove wrong return type in cumsum_inplace
2022-03-17 04:20:39 +02:00
gitlost
b94a7a87fa
Fix issue #1574 "fract in linalg/glm is broken" by fixing
...
trunc_f16/32/64 in "math.odin" (~ typos on expressions)
Fix classify_f16 Inf test (would fail for subnormal 0h0001)
by changing multiplier 0.5 -> 0.25
Add some useful consts to "math.odin" (INF_F16 etc)
Add comment to "demo.odin" mentioning that -0.0 must be used
to specify negative zero
2022-03-08 18:06:25 +00:00
FancyKillerPanda
62ff8daa78
Changed //+ignore to //+build ignore.
2022-02-24 12:23:54 +11:00
NoahR02
817bc7434d
Ports OpenSimplex2 from https://github.com/KdotJPG/OpenSimplex2 to Odin. Adds tests for the noise procedures.
2022-02-08 06:16:10 -05:00
gingerBill
b8c4bf2afb
Add #partial [Enum]Type{...} support to check for missing enumerated array fields
2022-02-05 14:02:21 +00:00
gingerBill
6418ec3b21
Correct #sparse usage and error messages
2022-02-05 13:09:16 +00:00
gingerBill
df8bdac33f
Initialize the global_rand with the intrinsics.read_cycle_counter() value
2022-02-03 00:31:36 +00:00
gingerBill
8c9505505a
Add allocator parameter to rand.perm
2022-02-01 15:23:49 +00:00
gingerBill
ebb8ca7c26
Add round to linalg_glsl_math.odin
2022-01-30 21:35:05 +00:00
Jesse Stiller
62cc752066
Added round to HLSL and GLSL, and isinf/isfinite + isnan to HLSL
2022-01-30 13:57:01 +10:00
gingerBill
3165b7cf95
Add rand.exp_float64
2022-01-27 16:09:33 +00:00
gingerBill
16786aac78
Correct int31_max etc
2022-01-27 12:33:34 +00:00
gingerBill
fb01dfe048
Improve docs_writer.cpp
2022-01-17 22:17:07 +00:00
gingerBill
c85ac955f7
Simplify docs to hide the copyright
2022-01-17 19:00:47 +00:00
Jesse Stiller
d4ea02a877
Extraneous parameters in hlsl/glsl.saturate removed
...
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.
2022-01-17 12:19:06 +10:00