Closed kotauskas closed 1 year ago
Why have a quaternion defined as a tuple of T and an array of 3 T items if you can define it as a struct and relocate the functions into its impl?
T
impl
This is because other crates does not need to declare the type. For example, they can use Into<(T, [T; 3])>.
Into<(T, [T; 3])>
Why have a quaternion defined as a tuple of
T
and an array of 3T
items if you can define it as a struct and relocate the functions into itsimpl
?