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
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
gingerBill
f0529535e0
ODIN_ENDIAN changed to an enum constant; ODIN_ENUM_STRING is the new string version of the old constant
2022-01-15 17:53:18 +00:00
gingerBill
80bd1eb615
Fix polymorphic matrix element with a minor hack
2022-01-10 12:19:49 +00:00
gingerBill
af612bc7e9
Update matrix types to be the native Odin matrix types
2022-01-10 11:32:27 +00:00
gingerBill
f15bb0b424
Fix quaternion casting
2022-01-03 19:45:27 +00:00
gingerBill
0d7cb02386
Fix conversion from float to quaternion
2021-12-31 23:20:14 +00:00
gilles
4ebdb6740e
fix math.prod
...
accumulator was not initialized to one
2021-12-16 18:55:51 +01:00
Jeroen van Rijn
938744b276
[math/big] Rename internal_int_shl_digit to _private_int_shl_leg.
...
Same for the SHR variant. These are pure implementation details to shift by a leg/word at a time.
Prevent accidental usage.
2021-12-11 15:22:24 +01:00
gingerBill
84b84d9f7d
Fix rat_set_f64
2021-12-11 12:47:05 +00:00
Jeroen van Rijn
c771ea9794
Merge pull request #1358 from Kelimion/big_math_fix
...
[math/big] Return 0, .Integer_Underflow if T = unsigned and bigint is negative.
2021-12-09 16:41:37 +01:00
gingerBill
94bad4d786
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-12-09 15:36:12 +00:00
gingerBill
1e17d5d86f
Add utility procedures to get low values
2021-12-09 15:34:35 +00:00
gingerBill
1e9b30666f
Minor style change
2021-12-09 15:34:17 +00:00
Jeroen van Rijn
b2b79b86f0
[math/big] Return 0, .Integer_Underflow if trying to get a negative number to an unsigned int.
2021-12-09 16:31:54 +01:00
Jeroen van Rijn
c94098c2ab
[math/big] Fix int_set and int_get.
2021-12-09 16:14:04 +01:00
gingerBill
9d4fe90356
Fix bugs in big.Rat caused by typos
2021-12-07 17:35:41 +00:00