astro-group-bristol / Gradus.jl

Extensible spacetime agnostic general relativistic ray-tracing (GRRT).
https://astro-group-bristol.github.io/Gradus.jl/dev/
GNU General Public License v3.0
16 stars 2 forks source link

Proposal: coordinate aware vectors #163

Open fjebaker opened 10 months ago

fjebaker commented 10 months ago

Create a vector wrapper type that knows which coordinates it is defined in; essentially an SVector with some additional parameter that encodes if it's a spherical or cartesian vector.

This would allow much more expressive coordinate transformation functions, and fewer mistakes made by users.