Rectangle

open class Rectangle

Beschreibt ein Rechteck.

Author

Michael Andonie

Niklas Keller

Constructors

Link copied to clipboard
constructor(width: Float, height: Float)
Konstruktor.
constructor(width: Float, height: Float, shapeSupplier: Supplier<Shape>)

Properties

Link copied to clipboard
Für abgerundete Ecken, Prozent der Abrundung der kleineren Seite
Link copied to clipboard
open val height: Float
Die Höhe
Link copied to clipboard
open val width: Float
Die Breite

Functions

Link copied to clipboard
open fun render(g: Graphics2D, pixelPerMeter: Float)
Link copied to clipboard
open fun setSize(width: Float, height: Float)
Setzt die Höhe und Breite des Rechtecks neu.