|
olp-cpp-sdk 1.24.0
|
Represents the 2D size. More...
#include <Size.h>
Public Types | |
| using | Value = T |
| An alias for the value type. | |
Public Member Functions | |
| Size2 () | |
Creates an uninitialized Size2 instance. | |
| template<typename U > | |
| Size2 (const Size2< U > &size) | |
Creates a Size2 instance from another type. | |
| template<typename U > | |
| Size2 (const Vector2< U > &vector) | |
Creates a Size2 instance from a vector. | |
| Size2 (Value width, Value height) | |
Creates a Size2 instance from the value width and height. | |
| template<typename U > | |
| operator Vector2< U > () const | |
| Converts a type to a vector. | |
| bool | empty () const |
| Checks whether the size is empty. | |
| Value | Width () const |
Gets the width of the Size2 object. | |
| Value | Height () const |
Gets the height of the Size2 object. | |
Creates a Size2 instance from another type.
| size | The size of the other type to create from. |
|
explicit |
Creates a Size2 instance from a vector.
| [in] | vector | The vector to create from. |
Creates a Size2 instance from the value width and height.
| [in] | width | The value width to create from. |
| [in] | height | The value height to create from. |
| bool olp::math::Size2< T >::empty | ( | ) | const |
Checks whether the size is empty.
| auto olp::math::Size2< T >::Height | ( | ) | const |
|
explicit |
Converts a type to a vector.
| auto olp::math::Size2< T >::Width | ( | ) | const |