# 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:**

```xml
<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>
```

![](https://openbrim.atlassian.net/wiki/download/attachments/2167636158/image-20230823-155020.png?api=v2) To view this example in the library, see (<https://openbrim.org/app/?incubator=1&author=ParamML_Examples_OpenBrIM+Platform&obj=objidpcw4m0cfnhamk6hoiyw0s> )
