PistonDevelopers / quaternion

A simple and type agnostic Rust library for quaternion math designed for reexporting
Apache License 2.0
13 stars 6 forks source link

Requires an API overhaul #42

Closed kotauskas closed 1 year ago

kotauskas commented 4 years 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?

bvssvni commented 4 years ago

This is because other crates does not need to declare the type. For example, they can use Into<(T, [T; 3])>.