Size2D

data class Size2D(val width: Double, val height: Double)

A class representing a size with a width and a height as Float.

Constructors

Link copied to clipboard
constructor()
constructor(width: Float, height: Float)
constructor(width: Int, height: Int)
constructor(width: Double, height: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Size.applyScaleMode(container: Size, mode: ScaleMode): Size
fun Size.applyScaleMode(container: Rectangle, mode: ScaleMode, anchor: Anchor): Rectangle
Link copied to clipboard
Link copied to clipboard
operator fun div(other: Size): Scale
operator fun div(s: Double): Size
operator fun div(s: Float): Size
operator fun div(s: Int): Size
Link copied to clipboard
fun Size.fitTo(container: Size): Size
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun minus(other: Size): Size
Link copied to clipboard
operator fun plus(other: Size): Size
Link copied to clipboard
operator fun times(scale: Scale): Size
operator fun times(scale: Vector2F): Size
operator fun times(s: Double): Size
operator fun times(s: Float): Size
operator fun times(s: Int): Size
Link copied to clipboard
operator fun Size.times(anchor: Anchor): Point
Link copied to clipboard
fun Size.toAwt(out: Dimension2D = java.awt.Dimension()): Dimension2D
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun unaryMinus(): Size
Link copied to clipboard
operator fun unaryPlus(): Size