Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

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

To view this example in the library, see (https://openbrim.org/app/?incubator=1&author=ParamML_Examples_OpenBrIM+Platform&obj=objidpcw4m0cfnhamk6hoiyw0s )