> ## 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_Angle (Python)

> Returns the computed angle between vectors formed by given geometries in radian.

Returns the computed angle between vectors formed by given geometries in radian. Range of result is between 0 and 2 \* pi.

3 Variants:

* Angle(Point1, Point2, Point3, Point4)
  Computes angle formed by vectors formed by Point1-Point2 and Point3-Point4
* Angle(Point1, Point2, Point3)
  Computes angle formed by angle Point1-Point2-Point3
* Angle(Line1, Line2)
  Computes angle between vectors formed by S1-E1 and S2-E2, where S and E are start and endpoints.

SQL reference: [`ST_Angle`](/reference/wherobots-db/geometry-data/measurement/ST_Angle)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_Angle

ST_Angle(
    g1: ColumnOrName,
    g2: ColumnOrName,
    g3: Optional[ColumnOrName] = None,
    g4: Optional[ColumnOrName] = None,
) -> Column
```

## Parameters

<ParamField path="g1" type="ColumnOrName" required>
  Point or Line
</ParamField>

<ParamField path="g2" type="ColumnOrName" required>
  Point or Line
</ParamField>

<ParamField path="g3" type="Optional[ColumnOrName]" default="None">
  Point or None
</ParamField>

<ParamField path="g4" type="Optional[ColumnOrName]" default="None">
  Point or None
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Returns the computed angle
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.