Size
The Size struct represents a 2D or 3D size, commonly used for defining dimensions such as width, height, and depth. It provides multiple constructors to initialize the size in 2D (with width and height), 3D (with width, height, and depth), or as a uniform size for all dimensions (when a single size value is provided for width and height). By default, all values are set to zero.
#include <TellusimTypes.h>
Constructors
Size()
explicit Size(uint32_t size)
Size(uint32_t width, uint32_t height)
Size(uint32_t width, uint32_t height, uint32_t depth)
Operators
Size operator*(const Size &s0, const Size &s1)
Size operator/(const Size &s0, const Size &s1)
Size operator+(const Size &s0, const Size &s1)
Size operator-(const Size &s0, const Size &s1)
Size operator<<(const Size &s, uint32_t m)
Size operator>>(const Size &s, uint32_t m)
Size operator*(const Size &s, uint32_t f)
Size operator/(const Size &s, uint32_t f)
Size operator*(const Size &s, float32_t f)
Variables
Type | Name | Value |
---|---|---|
uint32_t | width | 0 |
uint32_t | height | 0 |
uint32_t | depth | 0 |