Commit Graph

43 Commits

Author SHA1 Message Date
gingerBill
baf5b9edc3 Add runtime.bswap_* required for -llvm-api 2020-04-11 19:26:16 +01:00
gingerBill
b0d668d254 Fix math.atan 2020-04-04 13:02:39 +01:00
gingerBill
d3c2191cf7 Fix formatting 2020-03-30 12:38:09 +01:00
vassvik
dd13cf637e Fix linalg.euler_angles_from_quaternion 2020-03-30 13:29:01 +02:00
gingerBill
e92fdb4a99 x if cond else y and x when cond else y expressions 2020-03-05 20:34:30 +00:00
vassvik
6d67567453 Fix linalg.matrix_mul_vector.
Incorrect index.
2020-02-09 18:47:02 +01:00
vassvik
0c09cb9c12 Fix math.acos and math.asin, add f64 overloads. 2020-02-06 13:35:55 +01:00
gingerBill
3bd00fd6b7 Add thread.Pool with example in demo.odin; Update linalg to support handness changes for projection matrices 2020-01-02 15:07:12 +00:00
gingerBill
16a7c55334 Add x y z w fields to quaternion types; Improve linalg quaternion mathematics 2020-01-01 16:14:00 +00:00
gingerBill
42678848b2 Rename math/bits package name to math_bits 2019-12-31 12:27:31 +00:00
gingerBill
ab52f8d795 Move definition of mem.Allocator and log.Logger to package runtime, to reduce import cycle magic 2019-12-31 12:15:19 +00:00
gingerBill
2d70a784d1 Add quaternion_look_at orientation procedure to package math/linalg 2019-12-29 20:35:27 +00:00
gingerBill
8ee41c20af Add more to package math 2019-12-28 23:48:15 +00:00
gingerBill
11c705508d Split linalg into general and specific parts 2019-12-28 23:09:43 +00:00
gingerBill
1bc6e6a7cc Add linalg.vector_lerp, linalg.vector_unlerp 2019-12-28 23:07:31 +00:00
gingerBill
33a458c520 Update package math/linalg 2019-12-28 23:00:13 +00:00
gingerBill
6a7ccd8c0a Add new procedures for package math: atan2, asin, acos, atan, sin_bit, ldexp 2019-12-28 18:12:27 +00:00
gingerBill
1d14b3059e Fix Internal Compiler Error: Type_Info for 'XXX' could not be found #507 2019-12-22 14:16:56 +00:00
vassvik
2d97e1dee3 Fix NaN checks in core:math.classify
Currently the classify procedures checks for NaNs using the check `x != x`, which is always false for NaNs and therefore that case is never entered. Using `!(x == x)` will work on the other hand.
2019-12-12 19:12:12 +01:00
gingerBill
098684a6fe Add 128-bit random procedures to package math/rand 2019-11-10 18:47:16 +00:00
vassvik
04a25b11ad Fix incorrect math.linalg.cross3 indices. 2019-11-04 17:39:26 +01:00
gingerBill
f9aaff99c6 Fix linalg.mul; add linalg.Matrix1xN 2019-11-02 10:30:11 +00:00
gingerBill
416ff149bd Fix procedure group "best fit" algorithm for polymorphic procedures 2019-10-27 19:42:21 +00:00
gingerBill
a29a6d9285 Fix typos in package linalg; Fix norm_float64 in package rand 2019-10-27 18:43:40 +00:00
gingerBill
5e81fc72b9 New package math and package math/linalg 2019-10-27 10:35:35 +00:00
Joshua Mark Manton
96f0a08725 Fix scale_f32 and scale_vec3 from returning the wrong variable. 2019-07-20 13:15:51 -07:00
gingerBill
8ee7ee7120 Fix core library for the new procedure parameter addressing mode 2019-07-15 22:16:27 +01:00
gingerBill
c40acd008e Add i128/u128 support for bit sets 2019-05-28 20:53:56 +01:00
gingerBill
fb3d73cb20 Make core library use a..<b rather than doing a..b-1 2019-05-28 12:52:20 +01:00
gingerBill
40135cbc66 Add float64_range and float32_range to package math/rand 2019-04-28 20:35:14 +01:00
gingerBill
8b09ab6fe7 Move core:bits to core:math/bits 2019-03-24 20:39:01 +00:00
gingerBill
2347dca9d9 Improve package math/rand 2019-03-24 20:36:39 +00:00
thebirk
6571f07c7e Fixed typo in copy_sign_f64. 2019-02-08 12:58:30 +01:00
gingerBill
e3d7e6f76a Fix typo in modf_f32 2018-12-20 18:11:27 +00:00
gingerBill
5c3dc30dc0 More correct floor and ceil procedures. 2018-12-20 10:54:56 +00:00
gingerBill
28583bfff8 Change procedure group syntax from proc[] to proc{}; deprecate proc[] (raises warning currently) 2018-12-02 18:01:03 +00:00
gingerBill
11f5236434 Add $T: typeid/[]$E; Deprecate T: type/[]$E
`type` as a keyword will soon be removed in favour of polymorphic names (identifiers) in procedures
2018-09-02 16:33:54 +01:00
gingerBill
0718f14774 Reduce number of range and slice operators #239
Replace .. and ... with : and ..
2018-08-01 21:34:59 +01:00
Lipid
92ce02dab0 Fix indent characters 2018-07-16 20:30:49 +02:00
Lipid
8abe9ef507 Add mat3_mul and generic transpose to math.odin 2018-07-16 20:27:29 +02:00
gingerBill
398109ac84 Remove need for __llvm_core 2018-06-03 10:51:43 +01:00
gingerBill
5b6770f3d2 Parse directories to be packages 2018-05-21 20:47:52 +01:00
gingerBill
b3734a5f77 Add math/rand.odin 2018-01-17 19:09:22 +00:00