Commit graph

48 commits

Author SHA1 Message Date
Corwin 4e0334f29c
move some functions under more general generics 2024-06-13 22:47:03 +01:00
Corwin 2887791109
clarify it's only the z component 2024-05-15 22:32:28 +01:00
Corwin 72eb7189be
add dot and cross product 2024-05-15 22:28:29 +01:00
Corwin 57681f1084
use num traits for and implement signed 2024-04-09 20:26:15 +01:00
Corwin cddb85df05
use num traits 2024-04-09 20:26:15 +01:00
Corwin 20a74fe319
introduce vector and rect abs 2024-03-06 12:40:53 +00:00
Gwilym Inzani cfd3135d76 Implement num::Num for fixnum::Num 2024-02-21 13:58:27 +00:00
Corwin 09331d1cb5
make 16 bit precision work 2023-10-09 19:16:24 +01:00
Corwin e894367c52
use proper implementation of cos to check against 2023-10-08 14:56:32 +01:00
Corwin 548dd9ff67
fix cos function 2023-10-08 14:23:04 +01:00
Corwin 539caf7ad9
add test showing inaccuracy 2023-10-08 14:22:50 +01:00
Gwilym Inzani eda11073ed Introduce fixnum::from_f(32|64) 2023-08-06 20:24:59 +01:00
Gwilym Inzani ff5d324356 Reuse envelopes if they are the same 2023-08-05 00:58:39 +01:00
Corwin 2a21c5fdab
add optimisation for 64 bit upcast multiply 2023-06-06 23:00:17 +01:00
Corwin a7269ed65f
Add precision support for fixnums (#437)
- [ ] Changelog updated / no changelog update needed
2023-06-05 21:00:54 +01:00
Corwin c011e58ec7
separate tests 2023-06-02 18:18:18 +01:00
Corwin 6e0d58a674
add precision support for fixnums 2023-06-02 00:03:27 +01:00
Corwin b5704afe5e
remove usize 2023-06-01 18:52:03 +01:00
Corwin 9fa8f75202
upcast multiply 2023-05-30 22:21:12 +01:00
Gwilym Inzani 8c1c725dfa Inline always in new_from_parts 2023-05-23 21:46:25 +01:00
Gwilym Kuiper 97dec32fa2 Fix all the clippy lints 2023-02-07 20:32:43 +00:00
Corwin f0dd544394 make vector2d new const 2023-01-29 19:04:25 +00:00
Gwilym Kuiper 648a544ea8 fix spelling errors in agb-fixnum 2022-11-17 21:17:52 +00:00
Corwin 44e0b633d9 use copy implementation instead 2022-10-31 20:33:45 +00:00
Corwin 2efddfc342 changes made to make new game 2022-10-31 19:31:54 +00:00
Corwin ed1e8bcbdc use new affine stuff in map 2022-10-09 16:59:49 +01:00
Corwin 0be595b47e make guarentee even stronger 2022-10-09 11:31:28 +01:00
Corwin b9481116f1 reintroduce C repr for Num 2022-10-09 01:00:56 +01:00
Corwin c02454ef16 remove repr guarentee 2022-10-09 00:42:21 +01:00
Gwilym Kuiper 83c28254a1 Update to be closer to the API I actually want but currently only works in release mode 2022-09-22 23:29:58 +01:00
Gwilym Kuiper 4eaf8af72f Add Neg implementation for Vector2D 2022-09-22 21:32:36 +01:00
Gwilym Kuiper 84c87a8088 Merge remote-tracking branch 'origin/master' into affine 2022-09-22 20:13:23 +01:00
Ian Clester 24c921425c Add another case to formatting test. 2022-09-10 13:13:39 -04:00
Ian Clester 61ed85b032 Fix formatting of fixnums in the range (-1, 0) 2022-09-10 12:52:21 -04:00
lifning ee576597c2 Add rudimentary affine background layer support. 2022-08-11 23:49:51 +01:00
Corwin ff5a1fbbba add an example to the new number function 2022-08-09 19:16:12 +01:00
Corwin 5d2161c318 add function to attempt to change base 2022-08-09 19:16:12 +01:00
Corwin 102b4f6c2d take absolute values of the x, y coordinate 2022-08-08 18:56:30 +01:00
Corwin a188e7ba66 add abstraction over windows 2022-08-06 12:36:28 +01:00
Corwin e97b67516f fix some of the doc comments 2022-08-02 18:56:46 +01:00
Corwin e675fc5c3e fix name of trig functions 2022-08-02 18:53:15 +01:00
Corwin 0658895eb6 add docs to all public functions 2022-08-02 18:48:53 +01:00
Gwilym Kuiper 3d579390c8 Make the num macro work if you don't depend on agb_macros yourself 2022-07-16 18:02:55 +01:00
Gwilym Kuiper 9e8cdc6729 Iter is now exclusive 2022-03-13 20:11:43 +00:00
Gwilym Kuiper a365c14917 Small fixes 2022-03-05 19:23:53 +00:00
Gwilym Kuiper f785d65057 Something that seems like it is close to working 2022-03-05 19:23:50 +00:00
Gwilym Kuiper 8010b2661a Add inlines for basic functions in fixnum which weren't being inlined 2022-03-05 18:42:40 +00:00
Corwin Kuiper 5b7e1a760d split to own crate 2022-01-07 16:59:19 +00:00