Commit Graph

204 Commits

Author SHA1 Message Date
0cddb8798d Move basic types to a module 2024-06-25 13:14:48 +03:00
13da06b294 Publish structs 2024-06-25 13:07:03 +03:00
455b69d447 Extract the implementation to a module 2024-06-25 13:04:36 +03:00
84068a5a13 Move Tube to a file 2024-06-25 12:16:31 +03:00
ad107a6910 Have fun! 2024-06-25 12:06:56 +03:00
dd054e9016 Move stuff around 2024-06-25 11:29:33 +03:00
0ae05fd730 Rename stuff to what it is, not how it’s used 2024-06-13 15:53:20 +03:00
61e861816d Use proper panic handling
Unwinding is useless.
2024-06-13 15:33:10 +03:00
844c974ed4 Use Rust formatting 2024-06-13 15:32:44 +03:00
5cdc97951b Test TubeX as well 2024-06-13 13:26:02 +03:00
b4f7a3045b Move fns:: test to a submodule 2024-06-11 14:21:52 +03:00
f2e2767156 Test tube length 2024-06-11 14:21:52 +03:00
8ad9f04ece Test code cleanup 2024-06-11 14:21:52 +03:00
22339fb331 Remove an obsolete test 2024-06-11 14:21:52 +03:00
ededa1be50 Extend the tube-Y test 2024-06-11 13:56:11 +03:00
4feaf2428e Another rename 2024-06-11 13:52:29 +03:00
6c7c936ead Oops... I had that function already... 2024-06-11 13:50:02 +03:00
53075e0906 The Big Rename 2024-06-11 13:43:59 +03:00
ae152f6d7d Better test failure message 2024-06-11 00:42:47 +03:00
ce86e2a95c Minor cleanup 2024-06-11 00:37:25 +03:00
cf425a34b6 Unify listing objects 2024-06-11 00:34:34 +03:00
cac83b9003 Neat? 2024-06-11 00:29:16 +03:00
0a4078d4f3 Join object hitting halves together 2024-06-11 00:23:36 +03:00
8e31359a69 Unify object hitting code 2024-06-11 00:14:44 +03:00
39a4ee5824 Update object.loc in list_objects_inner to reflect the coordinate system change 2024-06-11 00:02:43 +03:00
17ed87035a Expose the fact dx and du are linear 2024-06-11 00:02:09 +03:00
fdc4e22da0 Record relative ray direction on hit 2024-06-10 23:30:38 +03:00
d5c2e34157 Unify some code 2024-06-10 22:58:52 +03:00
932029b064 Properly calculate relative hit position for rotated objects 2024-06-10 22:58:42 +03:00
3dec491bb5 Record relative hit position 2024-06-10 22:22:50 +03:00
5947a6e324 Draw smoother lines in the inner region 2024-06-10 20:16:17 +03:00
4b511af742 Hit objects in the inner region 2024-06-10 20:04:53 +03:00
9ec5f17754 Hit objects from different space regions 2024-06-10 19:50:39 +03:00
11e48580b9 Test that new code 2024-06-10 17:28:33 +03:00
3f7a1b7173 More code uniformity 2024-06-10 16:53:37 +03:00
1de98d9550 Extract a module 2024-06-10 16:15:26 +03:00
1dfc5bad0e More cleanup 2024-06-10 15:37:23 +03:00
7890107832 Neater code 2024-06-10 15:30:47 +03:00
4e6c3b19ae Split the metric into two functions 2024-06-10 15:29:57 +03:00
08fbff38fa Rotate the view 2024-06-10 15:28:55 +03:00
e8fdd5f338 Nerdy! 2024-06-10 14:52:57 +03:00
69cc1904a8 Trace all objects hit 2024-06-10 00:36:38 +03:00
ab5446385b Smoother circles 2024-06-10 00:10:31 +03:00
b22c36a983 Cleanup math 2024-06-10 00:10:22 +03:00
aa6779ff4b Cleanup 2024-06-09 23:30:37 +03:00
c6591e7455 Use proper coordinate adjustments in the objects 2024-06-09 23:29:18 +03:00
f3288c7331 Move multiplication out of flat-global vector conversion
The conversion is necessarily linear so...
2024-06-09 23:23:26 +03:00
2b7ae9485b Implement partial derivatives explicitly, for better precision 2024-06-09 23:13:20 +03:00
1f960e3726 Improve precision
That thing is divided by, so better make it a power of two to make the division exact.
2024-06-09 22:07:42 +03:00
e840b3f47b Trace to objects 2024-06-09 21:47:25 +03:00