# shz_hypotf

Source: https://sh4zam.com/api/scalar/shz_hypotf/

> Replacement for the <math.h> routine, hypotf()

```c
SHZ_INLINE float shz_hypotf(float x, float y) SHZ_NOEXCEPT;
```

Replacement for the \<math.h> routine, hypotf().

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x` | `float` |  |
| `y` | `float` |  |

## Returns

`float`

## Details

Returns the hypoteneuse of the right triangle with the given legs.

## Warnings

- Unlike hypotf(), this routine has no error or overflow handling.

## Availability

- **C++ equivalent:** [`shz::hypotf`](https://sh4zam.com/api/cpp/#shzhypotf)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_scalar.h:237`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_scalar.h#L237)
- **Module:** [Scalar](https://sh4zam.com/api/scalar/), section "Miscellaneous"
