---
title: "PitchLimits"
description: "Constructs a [PitchLimits] from the given [minimumPitch] and [maximumPitch] angles in degrees."
type: "function"
lastmod: "2026-10-21"
---
## API Reference

### PitchLimits

> Source set: Android

```kotlin
public fun PitchLimits(
    @FloatRange(from = -90.0, to = 90.0) minimumPitch: Float,
    @FloatRange(from = -90.0, to = 90.0) maximumPitch: Float,
): PitchLimits
```

Constructs a [PitchLimits](/jetpack-compose/androidx.xr.compose/compose/functions/PitchLimits/api) from the given `minimumPitch` and `maximumPitch` angles in degrees.

#### Parameters

| | |
| --- | --- |
| minimumPitch | The minimum allowed pitch angle in degrees. Must be in the range [-90.0, 90.0]. |
| maximumPitch | The maximum allowed pitch angle in degrees. Must be in the range [-90.0, 90.0]. |
