RoundedRectangle

data class RoundedRectangle(val corner: Vector2, val width: Double, val height: Double, val radii: List<Double>)(source)

Rounded rectangle. When radii are given (instead of radius), they are specified clockwise starting at the top-left. Fewer than 4 values are accepted and repeated cyclically. (e.g., providing 2 values alternates them, providing 1 value applies it to all corners).

Constructors

Link copied to clipboard
constructor(corner: Vector2, width: Double, height: Double, radii: List<Double>)
constructor(x: Double, y: Double, width: Double, height: Double, radii: List<Double>)
constructor(rectangle: Rectangle, radii: List<Double>)
constructor(corner: Vector2, width: Double, height: Double, radius: Double)
constructor(x: Double, y: Double, width: Double, height: Double, radius: Double)
constructor(rectangle: Rectangle, radius: Double)

Properties

Link copied to clipboard
val center: Vector2

the center of the rounded rectangle

Link copied to clipboard
val contour: ShapeContour

ShapeContour representation of the rounded rectangle

Link copied to clipboard
val corner: Vector2
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val shape: Shape
Link copied to clipboard
Link copied to clipboard
val x: Double
Link copied to clipboard
val y: Double