doodle
Toggle table of contents
0.12.0
common
Target filter
common
Switch theme
Search in API
Skip to content
doodle
Core
/
io.nacular.doodle.geometry
/
Size
/
Companion
/
invoke
invoke
operator
fun
invoke
(
width
:
Double
=
0.0
,
height
:
Double
=
width
)
:
Size
(
source
)
operator
fun
invoke
(
width
:
Int
=
0
,
height
:
Int
=
width
)
:
Size
(
source
)
operator
fun
invoke
(
width
:
Float
=
0.0f
,
height
:
Float
=
width
)
:
Size
(
source
)
Creates a
Size
.
Return
a new Size
Parameters
width
Horizontal extent; cannot be negative
height
Vertical extent; cannot be negative