List: discuss@lists.openscad.org
From: Adrian Mariano
Re: module for rotating an object around any axis is required
Fri, Mar 24, 2023 9:31 PM
[point.x,point.y,0]:point],
> pq=[p.x*q.x-p.y*q.y,p.x*q.y+p.y*q.x+cross(p.y,q.y)],
> pqp1=[pq.x*p1.x-pq.y*p1.y,pq.x*p1.y+pq.y*p1.x+cross(pq.y,p1.y)],
> transformation=pqp1.y
> )
>
> transformation
> ;
> // function is input to another function q_rot
> function qmr1(s,r,pl,n=0)= n==len(s)?pl:
> qmr1(s,r,
> let(
> v1=s[n]=="x"?[1,0,0]:s[n]=="y"?