John Smith
john@example.com
---
title: "legAngX"
excerpt: "Compute the angle of the given leg for x."
layout: manual
Compute the angle of the given leg for x.
```js
legAngX(
hypotenuse: number,
leg: number,
): number
```
### Tags
* `utilities`
### Arguments
| Name | Type | Description | Required |
|----------|------|-------------|----------|
| `hypotenuse` | [`number`](/docs/kcl/types/number) | The length of the triangle's hypotenuse | Yes |
| `leg` | [`number`](/docs/kcl/types/number) | The length of one of the triangle's legs (i.e. non-hypotenuse side) | Yes |
### Returns
[`number`](/docs/kcl/types/number)
### Examples
legAngX(hypotenuse = 5, leg = 3)