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.
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.