Creates a Size object from the given width and height (floats).
width of the new size
height of the new size
Height
Width
The surface of the Size : width * height (float).
Clones the size
a new Size copied from the given one.
Updates the current size from the given one.
the given size
Updates in place the current Size from the given floats.
width of the new size
height of the new size
the updated Size.
True if the current Size and the given one width and height are strictly equal.
the other size to compare against
True if the current Size and the given one width and height are strictly equal.
"Size"
the string "Size"
Returns the Size hash code.
a hash code for a unique width and height
Multiplies the width and height by numbers
factor to multiple the width by
factor to multiple the height by
a new Size set with the multiplication result of the current Size and the given floats.
Updates in place the current Size from the given floats.
width to set
height to set
the updated Size.
Returns a JSON representation of this vector. This is necessary due to the way Actors detect changes on components like the actor's transform. They do this by adding properties for observation, and we don't want these properties serialized.
Returns a string with the Size width and height
a string with the Size width and height
Creates a new Size set at the linear interpolation "amount" between "start" and "end"
starting size to lerp between
end size to lerp between
amount to lerp between the start and end values
a new Size set at the linear interpolation "amount" between "start" and "end"
Create a new size of zero
a new Size set to (0.0, 0.0)
Size containing widht and height