# androidx.compose.ui.geometry

Common/All

## Classes

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius` | A radius for either circular or elliptical (oval) shapes. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/MutableRect` | An mutable, 2D, axis-aligned, floating-point rectangle whose coordinates are relative to a given origin. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | An immutable 2D floating-point offset. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | An immutable, 2D, axis-aligned, floating-point rectangle whose coordinates are relative to a given origin. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect` | An immutable rounded rectangle with custom radii for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | Holds a 2D floating-point size. | Cmn |

## Objects

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset.Companion` |   | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect.Companion` |   | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size.Companion` |   | Cmn |

## Top-level functions summary

|---|---|---|
| `inline https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#CornerRadius(kotlin.Float,kotlin.Float)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Constructs a Radius with the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#CornerRadius(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#CornerRadius(kotlin.Float,kotlin.Float)` parameters for the size of the radius along the x and y axis respectively. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/MutableRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#MutableRect(androidx.compose.ui.geometry.Offset,kotlin.Float)(center: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, radius: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Construct a rectangle that bounds the given circle | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/MutableRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#MutableRect(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Size)(offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, size: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size)` Construct a rectangle from its left and top edges as well as its width and height. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/MutableRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#MutableRect(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset)(topLeft: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, bottomRight: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` Construct the smallest rectangle that encloses the given offsets, treating them as vectors from the origin. | Cmn |
| `inline https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Offset(kotlin.Float,kotlin.Float)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Constructs an Offset from the given relative `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Offset(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Offset(kotlin.Float,kotlin.Float)` offsets | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Rect(androidx.compose.ui.geometry.Offset,kotlin.Float)(center: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, radius: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Construct a rectangle that bounds the given circle | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Rect(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Size)(offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, size: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size)` Construct a rectangle from its left and top edges as well as its width and height. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Rect(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset)(topLeft: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, bottomRight: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` Construct the smallest rectangle that encloses the given offsets, treating them as vectors from the origin. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#RoundRect(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.CornerRadius)(rect: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect, cornerRadius: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius)` Construct a rounded rectangle from its bounding box and a radius that is the same in each corner. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#RoundRect(androidx.compose.ui.geometry.Rect,kotlin.Float,kotlin.Float)(rect: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect, radiusX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, radiusY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Construct a rounded rectangle from its bounding box and the same radii along its horizontal axis and its vertical axis. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#RoundRect(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.geometry.CornerRadius)( left: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, top: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, right: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, cornerRadius: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius )` Construct a rounded rectangle from its left, top, right, and bottom edges, and the same radius in each corner. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#RoundRect(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius)( rect: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect, topLeft: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius, topRight: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius, bottomRight: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius, bottomLeft: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius )` Construct a rounded rectangle from its bounding box and topLeft, topRight, bottomRight, and bottomLeft radii. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#RoundRect(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)( left: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, top: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, right: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, radiusX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, radiusY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Construct a rounded rectangle from its left, top, right, and bottom edges, and the same radii along its horizontal axis and its vertical axis. | Cmn |
| `inline https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Size(kotlin.Float,kotlin.Float)(width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Constructs a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Size(kotlin.Float,kotlin.Float)` from the given width and height | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,kotlin.Float)(start: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius, stop: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Linearly interpolate between two radii. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float)(start: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, stop: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Linearly interpolate between two offsets. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Rect,kotlin.Float)(start: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect, stop: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Linearly interpolate between two rectangles. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.RoundRect,androidx.compose.ui.geometry.RoundRect,kotlin.Float)(start: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect, stop: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Linearly interpolate between two rounded rectangles. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Size,androidx.compose.ui.geometry.Size,kotlin.Float)(start: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size, stop: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Linearly interpolate between two sizes | Cmn |

## Extension functions summary

|---|---|---|
| `inline https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).takeOrElse(kotlin.Function0)(block: () -> https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` If this `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).isSpecified()` then this is returned, otherwise `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).takeOrElse(kotlin.Function0)` is executed and its result is returned. | Cmn |
| `inline https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Size).takeOrElse(kotlin.Function0)(block: () -> https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size)` If this `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).isSpecified()` then this is returned, otherwise `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Size).takeOrElse(kotlin.Function0)` is executed and its result is returned. | Cmn |
| `inline operator https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(kotlin.Int).times(androidx.compose.ui.geometry.Size)(size: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size)` Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(kotlin.Int).times(androidx.compose.ui.geometry.Size)`'s `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#height()` multiplied by `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Cmn |
| `inline operator https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(kotlin.Double).times(androidx.compose.ui.geometry.Size)(size: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size)` Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(kotlin.Double).times(androidx.compose.ui.geometry.Size)`'s `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#height()` multiplied by `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | Cmn |
| `inline operator https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(kotlin.Float).times(androidx.compose.ui.geometry.Size)(size: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size)` Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(kotlin.Float).times(androidx.compose.ui.geometry.Size)`'s `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#height()` multiplied by `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/MutableRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.MutableRect).toRect()()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Size).toRect()()` Convert a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` to a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).translate(androidx.compose.ui.geometry.Offset)(offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` Returns a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect` translated by the given offset. | Cmn |

## Extension properties summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).boundingRect()` The bounding box of this rounded rectangle (the rectangle with no rounded corners). | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).center()` The offset to the point halfway between the left and right and the top and bottom edges of this rectangle. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Size).center()` Returns the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` of the center of the rect from the point of 0, 0 with this `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).isCircle()` Whether this rounded rectangle would draw as a circle. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).isEllipse()` Whether this rounded rectangle has no side with a straight section. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).isEmpty()` Whether this rounded rectangle encloses a non-zero area. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).isFinite()` True if both x and y values of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` are finite. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).isFinite()` Whether all coordinates of this rounded rectangle are finite. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).isRect()` Whether this rounded rectangle is a simple rectangle with zero corner radii. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).isSimple()` Returns `true` if the rounded rectangle have the same radii in both the horizontal and vertical direction for all corners. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).isSpecified()` `false` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#Unspecified()`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Size).isSpecified()` `false` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#Unspecified()`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).isUnspecified()` `true` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#Unspecified()`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Size).isUnspecified()` `true` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#Unspecified()`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).maxDimension()` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).minDimension()` The lesser of the magnitudes of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect#width()` and the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect#height()` of this rounded rectangle. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.RoundRect).safeInnerRect()` The non-rounded rectangle that is constrained by the smaller of the two diagonals, with each diagonal traveling through the middle of the curve corners. | Cmn |

## Top-level functions

### CornerRadius

Cmn 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/CornerRadius.kt+function:CornerRadius) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun CornerRadius(x: Float, y: Float = x): CornerRadius
```

Constructs a Radius with the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#CornerRadius(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#CornerRadius(kotlin.Float,kotlin.Float)` parameters for the size of the radius along the x and y axis respectively. By default the radius along the Y axis matches that of the given x-axis unless otherwise specified. Negative radii values are clamped to 0.

### MutableRect

Cmn 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/MutableRect.kt+function:MutableRect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun MutableRect(center: Offset, radius: Float): MutableRect
```

Construct a rectangle that bounds the given circle

| Parameters |
|---|---|
| `center: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | Offset that represents the center of the circle |
| `radius: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Radius of the circle to enclose |

### MutableRect

Cmn 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/MutableRect.kt+function:MutableRect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun MutableRect(offset: Offset, size: Size): MutableRect
```

Construct a rectangle from its left and top edges as well as its width and height.

| Parameters |
|---|---|
| `offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | Offset to represent the top and left parameters of the Rect |
| `size: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | Size to determine the width and height of this `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/MutableRect` | Rect with `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect#left()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect#top()` configured to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#x()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#y()` as `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect#right()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect#bottom()` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#x()` + `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#y()` + `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#height()` respectively |

### MutableRect

Cmn 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/MutableRect.kt+function:MutableRect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun MutableRect(topLeft: Offset, bottomRight: Offset): MutableRect
```

Construct the smallest rectangle that encloses the given offsets, treating them as vectors from the origin.

| Parameters |
|---|---|
| `topLeft: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | Offset representing the left and top edges of the rectangle |
| `bottomRight: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | Offset representing the bottom and right edges of the rectangle |

### Offset

Cmn 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/Offset.kt+function:Offset) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun Offset(x: Float, y: Float): Offset
```

Constructs an Offset from the given relative `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Offset(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Offset(kotlin.Float,kotlin.Float)` offsets

### Rect

Cmn 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+function:Rect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun Rect(center: Offset, radius: Float): Rect
```

Construct a rectangle that bounds the given circle

| Parameters |
|---|---|
| `center: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | Offset that represents the center of the circle |
| `radius: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Radius of the circle to enclose |

### Rect

Cmn 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+function:Rect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun Rect(offset: Offset, size: Size): Rect
```

Construct a rectangle from its left and top edges as well as its width and height.

| Parameters |
|---|---|
| `offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | Offset to represent the top and left parameters of the Rect |
| `size: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | Size to determine the width and height of this `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Rect(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Size)`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | Rect with `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect#left()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect#top()` configured to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#x()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#y()` as `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect#right()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect#bottom()` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#x()` + `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#y()` + `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#height()` respectively |

### Rect

Cmn 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+function:Rect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun Rect(topLeft: Offset, bottomRight: Offset): Rect
```

Construct the smallest rectangle that encloses the given offsets, treating them as vectors from the origin.

| Parameters |
|---|---|
| `topLeft: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | Offset representing the left and top edges of the rectangle |
| `bottomRight: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | Offset representing the bottom and right edges of the rectangle |

### RoundRect

Cmn 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/RoundRect.kt+function:RoundRect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun RoundRect(rect: Rect, cornerRadius: CornerRadius): RoundRect
```

Construct a rounded rectangle from its bounding box and a radius that is the same in each corner.

### RoundRect

Cmn 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/RoundRect.kt+function:RoundRect) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun RoundRect(rect: Rect, radiusX: Float, radiusY: Float): RoundRect
```

Construct a rounded rectangle from its bounding box and the same radii along its horizontal axis and its vertical axis.

### RoundRect

Cmn 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/RoundRect.kt+function:RoundRect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun RoundRect(
    left: Float,
    top: Float,
    right: Float,
    bottom: Float,
    cornerRadius: CornerRadius
): RoundRect
```

Construct a rounded rectangle from its left, top, right, and bottom edges, and the same radius in each corner.

### RoundRect

Cmn 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/RoundRect.kt+function:RoundRect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun RoundRect(
    rect: Rect,
    topLeft: CornerRadius = CornerRadius.Zero,
    topRight: CornerRadius = CornerRadius.Zero,
    bottomRight: CornerRadius = CornerRadius.Zero,
    bottomLeft: CornerRadius = CornerRadius.Zero
): RoundRect
```

Construct a rounded rectangle from its bounding box and topLeft, topRight, bottomRight, and bottomLeft radii.

The corner radii default to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/CornerRadius#Zero()`, i.e. right-angled corners

### RoundRect

Cmn 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/RoundRect.kt+function:RoundRect) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun RoundRect(
    left: Float,
    top: Float,
    right: Float,
    bottom: Float,
    radiusX: Float,
    radiusY: Float
): RoundRect
```

Construct a rounded rectangle from its left, top, right, and bottom edges, and the same radii along its horizontal axis and its vertical axis.

### Size

Cmn 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/Size.kt+function:Size) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun Size(width: Float, height: Float): Size
```

Constructs a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#Size(kotlin.Float,kotlin.Float)` from the given width and height

### lerp

Cmn 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/CornerRadius.kt+function:lerp) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun lerp(start: CornerRadius, stop: CornerRadius, fraction: Float): CornerRadius
```

Linearly interpolate between two radii.

The `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,kotlin.Float)` argument represents position on the timeline, with 0.0 meaning that the interpolation has not started, returning `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,kotlin.Float)` (or something equivalent to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,kotlin.Float)`), 1.0 meaning that the interpolation has finished, returning `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,kotlin.Float)` (or something equivalent to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,kotlin.Float)`), and values in between meaning that the interpolation is at the relevant point on the timeline between `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,kotlin.Float)`. The interpolation can be extrapolated beyond 0.0 and 1.0, so negative values and values greater than 1.0 are valid (and can easily be generated by curves).

Values for `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.CornerRadius,androidx.compose.ui.geometry.CornerRadius,kotlin.Float)` are usually obtained from an Animation, such as an `AnimationController`.

### lerp

Cmn 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/Offset.kt+function:lerp) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun lerp(start: Offset, stop: Offset, fraction: Float): Offset
```

Linearly interpolate between two offsets.

The `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float)` argument represents position on the timeline, with 0.0 meaning that the interpolation has not started, returning `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float)` (or something equivalent to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float)`), 1.0 meaning that the interpolation has finished, returning `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float)` (or something equivalent to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float)`), and values in between meaning that the interpolation is at the relevant point on the timeline between `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float)`. The interpolation can be extrapolated beyond 0.0 and 1.0, so negative values and values greater than 1.0 are valid (and can easily be generated by curves).

Values for `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float)` are usually obtained from an Animation, such as an `AnimationController`.

### lerp

Cmn 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+function:lerp) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun lerp(start: Rect, stop: Rect, fraction: Float): Rect
```

Linearly interpolate between two rectangles.

The `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Rect,kotlin.Float)` argument represents position on the timeline, with 0.0 meaning that the interpolation has not started, returning `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Rect,kotlin.Float)` (or something equivalent to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Rect,kotlin.Float)`), 1.0 meaning that the interpolation has finished, returning `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Rect,kotlin.Float)` (or something equivalent to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Rect,kotlin.Float)`), and values in between meaning that the interpolation is at the relevant point on the timeline between `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Rect,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Rect,kotlin.Float)`. The interpolation can be extrapolated beyond 0.0 and 1.0, so negative values and values greater than 1.0 are valid (and can easily be generated by curves).

Values for `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Rect,kotlin.Float)` are usually obtained from an Animation, such as an `AnimationController`.

### lerp

Cmn 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/RoundRect.kt+function:lerp) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun lerp(start: RoundRect, stop: RoundRect, fraction: Float): RoundRect
```

Linearly interpolate between two rounded rectangles.

The `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.RoundRect,androidx.compose.ui.geometry.RoundRect,kotlin.Float)` argument represents position on the timeline, with 0.0 meaning that the interpolation has not started, returning `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.RoundRect,androidx.compose.ui.geometry.RoundRect,kotlin.Float)` (or something equivalent to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.RoundRect,androidx.compose.ui.geometry.RoundRect,kotlin.Float)`), 1.0 meaning that the interpolation has finished, returning `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.RoundRect,androidx.compose.ui.geometry.RoundRect,kotlin.Float)` (or something equivalent to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.RoundRect,androidx.compose.ui.geometry.RoundRect,kotlin.Float)`), and values in between meaning that the interpolation is at the relevant point on the timeline between `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.RoundRect,androidx.compose.ui.geometry.RoundRect,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.RoundRect,androidx.compose.ui.geometry.RoundRect,kotlin.Float)`. The interpolation can be extrapolated beyond 0.0 and 1.0, so negative values and values greater than 1.0 are valid (and can easily be generated by curves).

Values for `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.RoundRect,androidx.compose.ui.geometry.RoundRect,kotlin.Float)` are usually obtained from an Animation, such as an `AnimationController`.

### lerp

Cmn 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/Size.kt+function:lerp) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun lerp(start: Size, stop: Size, fraction: Float): Size
```

Linearly interpolate between two sizes

The `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Size,androidx.compose.ui.geometry.Size,kotlin.Float)` argument represents position on the timeline, with 0.0 meaning that the interpolation has not started, returning `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Size,androidx.compose.ui.geometry.Size,kotlin.Float)` (or something equivalent to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Size,androidx.compose.ui.geometry.Size,kotlin.Float)`), 1.0 meaning that the interpolation has finished, returning `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Size,androidx.compose.ui.geometry.Size,kotlin.Float)` (or something equivalent to `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Size,androidx.compose.ui.geometry.Size,kotlin.Float)`), and values in between meaning that the interpolation is at the relevant point on the timeline between `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Size,androidx.compose.ui.geometry.Size,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Size,androidx.compose.ui.geometry.Size,kotlin.Float)`. The interpolation can be extrapolated beyond 0.0 and 1.0, so negative values and values greater than 1.0 are valid (and can easily be generated by curves).

Values for `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#lerp(androidx.compose.ui.geometry.Size,androidx.compose.ui.geometry.Size,kotlin.Float)` are usually obtained from an Animation, such as an `AnimationController`.

## Extension functions

### Offset.takeOrElse

Cmn 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/Offset.kt+function:takeOrElse) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
inline fun Offset.takeOrElse(block: () -> Offset): Offset
```

If this `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).isSpecified()` then this is returned, otherwise `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).takeOrElse(kotlin.Function0)` is executed and its result is returned.

### Size.takeOrElse

Cmn 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/Size.kt+function:takeOrElse) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
inline fun Size.takeOrElse(block: () -> Size): Size
```

If this `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).isSpecified()` then this is returned, otherwise `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Size).takeOrElse(kotlin.Function0)` is executed and its result is returned.

### Int.times

Cmn 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/Size.kt+function:times) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
inline operator fun Int.times(size: Size): Size
```

Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(kotlin.Int).times(androidx.compose.ui.geometry.Size)`'s `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#height()` multiplied by `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html`

### Double.times

Cmn 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/Size.kt+function:times) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
inline operator fun Double.times(size: Size): Size
```

Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(kotlin.Double).times(androidx.compose.ui.geometry.Size)`'s `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#height()` multiplied by `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html`

### Float.times

Cmn 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/Size.kt+function:times) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
inline operator fun Float.times(size: Size): Size
```

Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(kotlin.Float).times(androidx.compose.ui.geometry.Size)`'s `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#height()` multiplied by `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html`

### MutableRect.toRect

Cmn 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/MutableRect.kt+function:toRect) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun MutableRect.toRect(): Rect
```

### Size.toRect

Cmn 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/Size.kt+function:toRect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun Size.toRect(): Rect
```

Convert a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` to a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect`.

### RoundRect.translate

Cmn 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/RoundRect.kt+function:translate) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun RoundRect.translate(offset: Offset): RoundRect
```

Returns a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect` translated by the given offset.

## Extension properties

### RoundRect.boundingRect

Cmn 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/RoundRect.kt+symbol:boundingRect) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.boundingRect: Rect
```

The bounding box of this rounded rectangle (the rectangle with no rounded corners).

### RoundRect.center

Cmn 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/RoundRect.kt+symbol:center) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.center: Offset
```

The offset to the point halfway between the left and right and the top and bottom edges of this rectangle.

### Size.center

Cmn 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/Size.kt+symbol:center)

```
val Size.center: Offset
```

Returns the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` of the center of the rect from the point of 0, 0 with this `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size`.

### RoundRect.isCircle

Cmn 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/RoundRect.kt+symbol:isCircle) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.isCircle: Boolean
```

Whether this rounded rectangle would draw as a circle.

### RoundRect.isEllipse

Cmn 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/RoundRect.kt+symbol:isEllipse) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.isEllipse: Boolean
```

Whether this rounded rectangle has no side with a straight section.

### RoundRect.isEmpty

Cmn 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/RoundRect.kt+symbol:isEmpty) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.isEmpty: Boolean
```

Whether this rounded rectangle encloses a non-zero area. Negative areas are considered empty.

### Offset.isFinite

Cmn 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/Offset.kt+symbol:isFinite)

```
val Offset.isFinite: Boolean
```

True if both x and y values of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` are finite. NaN values are not considered finite.

### RoundRect.isFinite

Cmn 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/RoundRect.kt+symbol:isFinite) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.isFinite: Boolean
```

Whether all coordinates of this rounded rectangle are finite.

### RoundRect.isRect

Cmn 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/RoundRect.kt+symbol:isRect) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.isRect: Boolean
```

Whether this rounded rectangle is a simple rectangle with zero corner radii.

### RoundRect.isSimple

Cmn 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/RoundRect.kt+symbol:isSimple) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.isSimple: Boolean
```

Returns `true` if the rounded rectangle have the same radii in both the horizontal and vertical direction for all corners.

### Offset.isSpecified

Cmn 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/Offset.kt+symbol:isSpecified)

```
val Offset.isSpecified: Boolean
```

`false` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#Unspecified()`.

### Size.isSpecified

Cmn 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/Size.kt+symbol:isSpecified)

```
val Size.isSpecified: Boolean
```

`false` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#Unspecified()`.

### Offset.isUnspecified

Cmn 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/Offset.kt+symbol:isUnspecified)

```
val Offset.isUnspecified: Boolean
```

`true` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset#Unspecified()`.

### Size.isUnspecified

Cmn 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/Size.kt+symbol:isUnspecified)

```
val Size.isUnspecified: Boolean
```

`true` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#Unspecified()`.

### RoundRect.maxDimension

Cmn 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/RoundRect.kt+symbol:maxDimension) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.maxDimension: Float
```

### RoundRect.minDimension

Cmn 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/RoundRect.kt+symbol:minDimension) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.minDimension: Float
```

The lesser of the magnitudes of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect#width()` and the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/RoundRect#height()` of this rounded rectangle.

### RoundRect.safeInnerRect

Cmn 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/RoundRect.kt+symbol:safeInnerRect) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RoundRect.safeInnerRect: Rect
```

The non-rounded rectangle that is constrained by the smaller of the two diagonals, with each diagonal traveling through the middle of the curve corners. The middle of a corner is the intersection of the curve with its respective quadrant bisector.