---
title: "PolygonShapeGeometry.CornerRounding"
description: "Amount and quality of rounding around a polygon vertex."
type: "class"
lastmod: "2026-09-24"
---
## API Reference

> Source set: Common

```kotlin
public class CornerRounding internal constructor(
        internal val value: Float,
        internal val unit: Int,
        internal val smoothing: Float,
    )
```

Amount and quality of rounding around a polygon vertex.

A corner takes one of three forms:
- unrounded, with a radius of 0, keeping the sharp vertex;
- rounded with a circular arc, with a `smoothing` of 0, following an approximated circular
arc between adjacent edges;
- rounded with continuous curvature, with `smoothing` > 0, where two symmetric cubic Bézier
flanking curves connect the circular arc to the edges. A `smoothing` of 0 keeps a purely
circular arc and 1 maximizes the flanking curves so they meet in the middle.

## Functions

### equals

> Source set: Common

```kotlin
override fun equals(other: Any?): Boolean
```

### hashCode

> Source set: Common

```kotlin
override fun hashCode(): Int
```

### toString

> Source set: Common

```kotlin
override fun toString(): String
```

## Members

### Companion

> Source set: Common

```kotlin
public companion object
```

## Properties

### Unrounded

> Source set: Common

```kotlin
public val Unrounded: CornerRounding = CornerRounding(0f, UnitLength, 0f)
```

Rounding with a radius of zero, producing a sharp corner at the vertex.
