#include <Pt/Gfx/Size.h>
Size with floating-point width and height.
Public Member Functions | |
| Float | area () const |
| Returns the area (width * height). | |
| void | transpose () |
| Swaps width and height in place. | |
| Size | toTransposed () const |
| Returns a copy with width and height swapped. | |
| Size (const SizeI &s) | |
| Constructs from a SizeI by widening the dimensions. | |
| Size & | operator= (const SizeI &s) |
| Assigns from a SizeI by widening the dimensions. | |
| SizeI | round () const |
| Rounds each dimension to the nearest integer and returns a SizeI. | |
| SizeI | floor () const |
| Floors each dimension and returns a SizeI. | |
| SizeI | ceil () const |
| Ceils each dimension and returns a SizeI. | |