▲ | amelius 5 days ago | |||||||
Can it also do reference frames? Like if I have a cartesian coordinates in one reference frame, can I use them in a type-safe way? E.g. not add two vectors in two reference frames? Same for polar coordinates? Etc. | ||||||||
▲ | cosmic_quanta 5 days ago | parent [-] | |||||||
The `dimensional` library doesn't provide this, no. However, it's easy to 'tag' data in Haskell using phantom types. For example, for vectors in reference frames:
There might already be a library to do this | ||||||||
|