toggle menu
korge-root
5.1.0
common
jvm
switch theme
search in API
korge-foundation
/
korlibs.math.geom
/
Size2D
Size2D
data
class
Size2D
(
val
width
:
Double
,
val
height
:
Double
)
A class representing a size with a
width
and a
height
as Float.
Members
Members & Extensions
Constructors
Size2D
Link copied to clipboard
constructor
(
)
constructor
(
width
:
Float
,
height
:
Float
)
constructor
(
width
:
Int
,
height
:
Int
)
constructor
(
width
:
Double
,
height
:
Double
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
area
Link copied to clipboard
val
area
:
Double
height
Link copied to clipboard
val
height
:
Double
mutable
Link copied to clipboard
val
Size
.
mutable
:
MSize
perimeter
Link copied to clipboard
val
perimeter
:
Double
width
Link copied to clipboard
val
width
:
Double
Functions
apply
Scale
Mode
Link copied to clipboard
fun
Size
.
applyScaleMode
(
container
:
Size
,
mode
:
ScaleMode
)
:
Size
fun
Size
.
applyScaleMode
(
container
:
Rectangle
,
mode
:
ScaleMode
,
anchor
:
Anchor
)
:
Rectangle
avg
Component
Link copied to clipboard
fun
avgComponent
(
)
:
Double
div
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
fit
To
Link copied to clipboard
fun
Size
.
fitTo
(
container
:
Size
)
:
Size
is
Empty
Link copied to clipboard
fun
isEmpty
(
)
:
Boolean
max
Component
Link copied to clipboard
fun
maxComponent
(
)
:
Double
min
Component
Link copied to clipboard
fun
minComponent
(
)
:
Double
minus
Link copied to clipboard
operator
fun
minus
(
other
:
Size
)
:
Size
plus
Link copied to clipboard
operator
fun
plus
(
other
:
Size
)
:
Size
times
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
times
Link copied to clipboard
operator
fun
Size
.
times
(
anchor
:
Anchor
)
:
Point
to
Awt
Link copied to clipboard
jvm
fun
Size
.
toAwt
(
out
:
Dimension2D
=
java.awt.Dimension()
)
:
Dimension2D
to
Int
Link copied to clipboard
fun
Size
.
toInt
(
)
:
SizeInt
to
Point
Link copied to clipboard
fun
Size
.
toPoint
(
)
:
Point
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
to
Vector
Link copied to clipboard
fun
Size
.
toVector
(
)
:
Vector2D
to
Vector2D
Link copied to clipboard
fun
Size
.
toVector2D
(
)
:
Vector2D
to
Vector2F
Link copied to clipboard
fun
Size
.
toVector2F
(
)
:
Vector2F
unary
Minus
Link copied to clipboard
operator
fun
unaryMinus
(
)
:
Size
unary
Plus
Link copied to clipboard
operator
fun
unaryPlus
(
)
:
Size