-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
enhancementNew feature or requestNew feature or request
Description
(An idea💡)
The idea is to create Vectors and operator with types, e.g.
Vector<[x, y, pol, dir]> or operator Operator<[spin, spin], [spin, spin]>
Thay way, it would be possible to check types at the TypeScript level. It seems that in plain TS the operations are clunky, but it is possible to use:
https://github.com/ksxnodemodules/typescript-tuple/
I didn't know how to approach it, as some operations (e.g. partialDot) make the type dependent on values.
Also, for dimensions - should be also incorporate basis?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request