> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_RotateX

Performs a counter-clockwise rotation of the specified geometry around the X-axis by the given angle measured in radians.

<img src="https://mintcdn.com/wherobots/wLm_IRUSNlHZTHJP/images/sql-functions/ST_RotateX/ST_RotateX.svg?fit=max&auto=format&n=wLm_IRUSNlHZTHJP&q=85&s=daef46c518be3ec7f6b812637f7257f3" alt="ST_RotateX" width="400" height="180" data-path="images/sql-functions/ST_RotateX/ST_RotateX.svg" />

## Signatures

```sql theme={"system"}
ST_RotateX(geometry: Geometry, angle: Double)
```

## Parameters

<ParamField body="geometry" type="Geometry" required>
  The input geometry.
</ParamField>

<ParamField body="angle" type="Double" required>
  The angle value.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_RotateX(ST_GeomFromEWKT('SRID=4326;POLYGON ((0 0, 1 0, 1 1, 0 0))'), 10)
```

```
SRID=4326;POLYGON ((0 0, 1 0, 1 -0.8390715290764524, 0 0))
```
