Commit Graph

2 Commits

Author SHA1 Message Date
nmlgc 1e6d308593 [Maintenance] [th03/th04/th05] Add X/Y polar coordinate abstractions
Matching the sane ones we use for TH01 and TH02. Them being macros will
actually help with two cases in TH03 and TH04 that inconsistently use
inlined polar calculations rather than calling polar()…

Part of P0244, funded by Blue Bolt and [Anonymous].
2023-06-12 02:09:21 +02:00
nmlgc 0efe76ab77 [Naming] Rename vector1_at() to polar()
"1D polar vectors" are a weird concept to wrap your head around,
especially if their constructor function takes a sine or cosine ratio
instead of an angle. This function is way closer to the polar_*()
family, which has these convenient `_x` and _y` suffixes that we could
just remove for this generic function to fit into there.

Part of P0244, funded by Blue Bolt and [Anonymous].
2023-06-12 02:08:41 +02:00