List: discuss@lists.openscad.org
From: Jordan Brown
Re: [OpenSCAD] Question about rotations and math and variables.
Wed, Feb 20, 2019 6:07 PM
.
//
// Library to perform various transformations on an [x,y,z] point.
//
// Define the various transformation matrices.
function matrix_rotate_x(a) = [
[ 1, 0, 0, 0 ],
[ 0, cos(a), -sin(a), 0 ],
[ 0, sin(a), cos(a), 0 ],
[ 0, 0, 0, 1 ]
];
function matrix_rotate_y(a) = [
[ cos(a), 0,