Corwin Kuiper
|
b347f9338e
|
actually test base B in test base
|
2021-12-04 13:52:47 +00:00 |
|
Corwin Kuiper
|
ecd04190fa
|
remove unused stuff
|
2021-12-04 02:57:51 +00:00 |
|
Corwin Kuiper
|
6e0cbbe9eb
|
create a number macro that can use floating point numbes
|
2021-12-04 02:44:57 +00:00 |
|
Gwilym Kuiper
|
e1e4318c38
|
Add comment explaining how the fiddle works
|
2021-11-18 21:11:29 +00:00 |
|
Gwilym Kuiper
|
89f89803dd
|
GREEN: Fudge fractional and integral bits to get negative numbers to work
|
2021-11-18 21:05:29 +00:00 |
|
Gwilym Kuiper
|
413a819e64
|
Fix compiler warning for tests
|
2021-11-18 20:57:18 +00:00 |
|
Gwilym Kuiper
|
2eec47f31a
|
RED: Add failing tests for negative number printing
|
2021-11-18 20:57:18 +00:00 |
|
Corwin Kuiper
|
b492f3d43d
|
fix rect issue with touching
|
2021-10-30 12:24:43 +01:00 |
|
Corwin Kuiper
|
be44dbed3d
|
add useful derives
|
2021-10-30 10:12:45 +01:00 |
|
Corwin Kuiper
|
2838ea5f32
|
add more maths
|
2021-10-29 18:34:42 +01:00 |
|
Corwin Kuiper
|
1541d514c9
|
possible iter for backgrounds
|
2021-10-17 21:59:57 +01:00 |
|
Corwin Kuiper
|
631bf2bae2
|
add collision function
|
2021-08-15 23:40:25 +01:00 |
|
Corwin Kuiper
|
f9014a0bf9
|
started work on new background implementation
|
2021-08-07 18:12:49 +01:00 |
|
Gwilym Kuiper
|
f5d771d349
|
Use asm for the tight loops in the sound mixer
|
2021-07-31 21:47:05 +01:00 |
|
Corwin
|
53cf1a5064
|
Merge pull request #67 from gwilymk/more-exciting-mixer
More exciting mixer
|
2021-06-20 21:49:39 +01:00 |
|
Gwilym Kuiper
|
063af3fc40
|
Panning working?
|
2021-06-18 22:29:31 +01:00 |
|
Gwilym Kuiper
|
54e9498886
|
Add usize implementation for Number
|
2021-06-18 22:29:31 +01:00 |
|
Corwin Kuiper
|
e77152ef1b
|
better mul and div by integer for fixed num type
|
2021-06-16 19:14:22 +01:00 |
|
Gwilym Kuiper
|
100764b38c
|
Add manhattan distance method
|
2021-06-12 21:02:31 +01:00 |
|
Gwilym Kuiper
|
76d3f55606
|
Implement divassign for vector 2d
|
2021-06-12 15:09:54 +01:00 |
|
Corwin Kuiper
|
67e20b1e72
|
square rooting and magnitudes
|
2021-06-12 11:13:40 +01:00 |
|
Corwin Kuiper
|
b08e8d24be
|
from tuple accepts anything that is convertable
|
2021-06-11 20:38:06 +01:00 |
|
Corwin Kuiper
|
4f21b40cfc
|
make multiply and divide more generic
|
2021-06-08 17:18:44 +01:00 |
|
Corwin Kuiper
|
301a22d93a
|
add type for making unit vector from angle
|
2021-06-08 17:10:27 +01:00 |
|
Corwin Kuiper
|
1ac9e54296
|
fix sin implementation
|
2021-06-08 17:08:05 +01:00 |
|
Corwin Kuiper
|
81db1b861c
|
multiplication and division by constant
|
2021-06-08 16:46:13 +01:00 |
|
Corwin Kuiper
|
0ea0f1df3f
|
implement base changing
|
2021-06-08 15:54:25 +01:00 |
|
Corwin Kuiper
|
d6eff37b8a
|
add from for tuple
|
2021-06-08 12:31:27 +01:00 |
|
Corwin Kuiper
|
77f6512ba9
|
give access to underlying coordinates
|
2021-06-08 12:25:10 +01:00 |
|
Corwin Kuiper
|
0283790185
|
a vector implementation
|
2021-06-08 12:22:25 +01:00 |
|
Corwin Kuiper
|
6b725e90ad
|
stop using references
|
2021-06-06 18:30:42 +01:00 |
|
Corwin Kuiper
|
900b594039
|
use easily optimisable division for truncate
|
2021-06-06 18:27:15 +01:00 |
|
Gwilym Kuiper
|
1bb05560cb
|
Make it so that multiplication doesn't overflow so easily
|
2021-06-06 00:25:45 +01:00 |
|
Gwilym Kuiper
|
026dad0773
|
Change base can change between convertable integer types too
|
2021-06-06 00:25:29 +01:00 |
|
Gwilym Kuiper
|
3357a4b69d
|
Put brackets around nine / forty to ensure that we don't divide where we don't have to
|
2021-06-05 21:58:32 +01:00 |
|
Gwilym Kuiper
|
aa39b2b6ad
|
Make to_raw take self by value rather than reference
|
2021-06-05 21:49:36 +01:00 |
|
Gwilym Kuiper
|
54e28f5dd4
|
Add a Number type for i32
|
2021-06-05 21:47:04 +01:00 |
|
Gwilym Kuiper
|
174517fbb1
|
Fix tests
|
2021-06-05 21:47:04 +01:00 |
|
Gwilym Kuiper
|
508f33facd
|
Add support for all the integer widths
|
2021-06-05 21:47:03 +01:00 |
|
Gwilym Kuiper
|
de47dbc5dd
|
Make number generic on i32
|
2021-06-05 21:30:02 +01:00 |
|
Corwin Kuiper
|
9176e668a1
|
implement trig functions
|
2021-06-05 21:06:21 +01:00 |
|
Corwin Kuiper
|
93b0b757bd
|
make all const functions
|
2021-06-05 17:53:07 +01:00 |
|
Corwin Kuiper
|
e55ef4d152
|
add from and to raw
|
2021-06-05 17:40:41 +01:00 |
|
Gwilym Kuiper
|
363a16ce33
|
Add implementation of rem_euclid stolen from f32's implementation and add a test
|
2021-06-05 17:27:00 +01:00 |
|
Gwilym Kuiper
|
cdaef51d76
|
Add tests for %
|
2021-06-05 17:23:43 +01:00 |
|
Gwilym Kuiper
|
56cf16def4
|
Fix int() method to return as-if this was a float
|
2021-06-05 17:23:28 +01:00 |
|
Gwilym Kuiper
|
8b1ad400a7
|
Include fix length in debug string
|
2021-06-05 17:23:06 +01:00 |
|
Gwilym Kuiper
|
8b2dfdffc1
|
Add proper implementation of debug for Num
|
2021-06-05 17:22:23 +01:00 |
|
Gwilym Kuiper
|
e78c9abcec
|
Add basic definition of rem and remassign
|
2021-06-05 16:53:07 +01:00 |
|
Gwilym Kuiper
|
34981ea3dd
|
Make change_base function public
|
2021-06-05 16:35:58 +01:00 |
|