SizeExtension extension

on

Methods

toOffset() Offset

Available on Size, provided by the SizeExtension extension

Creates an Offset from the Size
toPoint() Point<num>

Available on Size, provided by the SizeExtension extension

Creates a Point from the Size
toRect() Rect

Available on Size, provided by the SizeExtension extension

Creates a Rect from the Size
toVector2() Vector2

Available on Size, provided by the SizeExtension extension

Creates a Vector2 from the Size