heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
69 stars 3 forks source link

Add a function to create a rotation matrix (or quaternion) from euler angles, specifing rotation order as a type parameter #69

Open heyx3 opened 1 year ago

heyx3 commented 1 year ago

This is a great use-case for @generated functions. Let the user specify the order and relativity of each axis as a type parameter, and figure out how to assemble their rotation matrix/quaternion.