Corwin Kuiper
|
5b7e1a760d
|
split to own crate
|
2022-01-07 16:59:19 +00:00 |
|
Corwin Kuiper
|
222efe9122
|
move tests to conditionally compiled modules
also only enable custom test framework feature in test mode
|
2022-01-06 19:47:30 +00:00 |
|
Corwin Kuiper
|
0e55916865
|
add test
|
2022-01-04 00:31:27 +00:00 |
|
Corwin Kuiper
|
6d829bd741
|
remove the step by feature
should have test to make sure it does what I want it to do
|
2022-01-04 00:10:51 +00:00 |
|
GBA bot
|
fa88bc40c6
|
Add another missing must_use
|
2022-01-01 11:35:49 +00:00 |
|
GBA bot
|
5f13c69fcf
|
Replace .map.flatten with .flat_map
|
2022-01-01 11:35:17 +00:00 |
|
GBA bot
|
afe69b98b8
|
Add a bunch of must_use now requested by clippy
|
2022-01-01 11:34:43 +00:00 |
|
Corwin Kuiper
|
38703c7cb8
|
add different implementation of sqrt
|
2021-12-06 23:31:42 +00:00 |
|
Corwin Kuiper
|
3800be4dcb
|
test for accuracy of magnitude function
|
2021-12-06 22:51:43 +00:00 |
|
Corwin Kuiper
|
affa27c8e0
|
remove unused crate
|
2021-12-06 22:43:58 +00:00 |
|
Corwin Kuiper
|
9a25274bb0
|
switched the magnitude function to use the alpha max + beta min algorithm
|
2021-12-06 19:49:27 +00:00 |
|
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 |
|