Create a new HSSize object
The width of the rectangle
The height of the rectangle
Returns the angle between the positive x axis and this size, treated as a vector of (w, h)
A number containing the angle in radians
Checks if this size is equal to another size
An HSSize to compare against
true if both sizes have the same width and height, otherwise false
Truncates the width and height of this size towards negative infinity
A new HSSize with the w and h values floored to the nearest integer
Scales this size
A new HSSize scaled by the given factor, or an unchanged copy of this size if factor is not a number, HSSize or HSPoint
This is a JavaScript object used to represent the size of a rectangle, as used in various places throughout Hammerspoon's API, particularly where dealing with portions of a display. Behind the scenes it is a wrapper for the CGSize type in Swift/ObjectiveC.