invoke

operator fun invoke(width: Double = 0.0, height: Double = width): Size
operator fun invoke(width: Int = 0, height: Int = width): Size
operator fun invoke(width: Float = 0.0f, height: Float = width): Size

Creates a Size.

Return

a new Size

Parameters

width

Horizontal extent; cannot be negative

height

Vertical extent; cannot be negative