Joymaker
2015-01-25 05:50:48 UTC
I wish OpenSCAD had a rotation function which operates on a vector, mimicking
the existing rotate operator which operates on 3-D model material. Like
this:
rotatev(deg_a, [x, y, z], v)
It would transform v into another vector which is rotated around the given
axis by the given number of degrees, as we are accustomed to. Even better if
it could take a list of vectors and rotate them all in the same manner.
This can be written as user code. But before I go and figure out the math
for myself, has anyone out there written it already?
--
View this message in context: http://forum.openscad.org/Wanted-rotate-function-on-vectors-tp11218.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
the existing rotate operator which operates on 3-D model material. Like
this:
rotatev(deg_a, [x, y, z], v)
It would transform v into another vector which is rotated around the given
axis by the given number of degrees, as we are accustomed to. Even better if
it could take a list of vectors and rotate them all in the same manner.
This can be written as user code. But before I go and figure out the math
for myself, has anyone out there written it already?
--
View this message in context: http://forum.openscad.org/Wanted-rotate-function-on-vectors-tp11218.html
Sent from the OpenSCAD mailing list archive at Nabble.com.