Quaternions for OpenScad

Quaternions for OpenScad

thingiverse

Adding Quaternion support to OpenScad, this plugin streamlines rotations by simplifying the process with the 'quat' function. To perform a 30-degree rotation around the z-axis, use 'rotz = quat([0,0,1], 30);'. Convert the quaternion to a matrix using 'rotzmatrix = quat_to_mat4(rotz);', which can be applied with 'multmatrix()'. Combine multiple rotations by creating separate quaternions and multiplying them together. The library also includes additional functions for different vector sizes and improved column major ordering in the 'mat4' routines. Recent updates include additional routines like 'quat_conj()', 'quat_distance()', 'quat_norm()', and 'quat_normalize()'. A user-friendly test file, test_maths.scad, is also available for experimentation. Embrace this plugin for simplified rotations in OpenScad!

Download Model from thingiverse

With this file you will be able to print Quaternions for OpenScad with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Quaternions for OpenScad.