rotate (List, Angle1, Angle2, Angle3)

rotate (List, Angle1, Angle2, Angle3) → List of number [X coor, Y coor, Z coor]

Given a three-element list (typically representing a point or a vector) and rotation angles provided in sequence (in radians), this function returns a new list by rotating the original list according to the given rotation angles.

Example:

<br><O N="rotateObject1" T="Project" Category="Functions" TransAlignRule="1"><br> <!-- created by ParamML Examples on 8/23/2023 --><br> <P N="Point1" V="[10,5,20]" /><br> <P N="Point2" V="rotate(Point1,PI,PI/4,PI/2)" /><br></O><br>

Last updated