# Rect.Companion

Artifact: [androidx.compose.ui:ui-geometry](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/geometry/Rect.kt+class:androidx.compose.ui.geometry.Rect.Companion) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/All
- Cmn

  ```
  object Rect.Companion
  ```

*** ** * ** ***

## Summary

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect#Zero()` A rectangle with left, top, right, and bottom edges all at zero. | Cmn |

| ### Extension properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/TwoWayConverter<https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect, https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector4D>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect.Companion.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect.Companion#(androidx.compose.ui.geometry.Rect.Companion).VectorConverter()` A type converter that converts a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` to a `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector4D`, and vice versa. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect.Companion.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect.Companion#(androidx.compose.ui.geometry.Rect.Companion).VisibilityThreshold()` Visibility threshold for `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect`. | Cmn |

## Public properties

### Zero

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Zero: Rect
```

A rectangle with left, top, right, and bottom edges all at zero.

## Extension properties

### Rect.Companion.VectorConverter

Cmn Artifact: [androidx.compose.animation:animation-core](https://developer.android.com/jetpack/androidx/releases/compose-animation) [View Source](https://cs.android.com/search?q=file:androidx/compose/animation/core/VectorConverters.kt+symbol:VectorConverter) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)

```
val Rect.Companion.VectorConverter: TwoWayConverter<Rect, AnimationVector4D>
```

A type converter that converts a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` to a `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector4D`, and vice versa.

### Rect.Companion.VisibilityThreshold

Cmn Artifact: [androidx.compose.animation:animation-core](https://developer.android.com/jetpack/androidx/releases/compose-animation) [View Source](https://cs.android.com/search?q=file:androidx/compose/animation/core/VisibilityThresholds.kt+symbol:VisibilityThreshold) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)

```
val Rect.Companion.VisibilityThreshold: Rect
```

Visibility threshold for `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect`. This defines the amount of value change that is considered to be no longer visible. The animation system uses this to signal to some default `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/package-summary#spring(kotlin.Float,kotlin.Float,kotlin.Any)` animations to stop when the value is close enough to the target.