Source set: Common
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
smoothingof 0, following an approximated circular - rounded with continuous curvature, with
smoothing> 0, where two symmetric cubic Bézier
arc between adjacent edges;
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
override fun equals(other: Any?): Boolean
hashCode
Source set: Common
override fun hashCode(): Int
toString
Source set: Common
override fun toString(): String
Members
Companion
Source set: Common
public companion object
Properties
Unrounded
Source set: Common
public val Unrounded: CornerRounding = CornerRounding(0f, UnitLength, 0f)
Rounding with a radius of zero, producing a sharp corner at the vertex.