Represents the 2D size.
More...
#include <Size.h>
|
using | Value = T |
| An alias for the value type.
|
|
template<typename T>
class olp::math::Size2< T >
Represents the 2D size.
◆ Size2() [1/3]
template<typename T >
template<typename U >
Creates a Size2
instance from another type.
- Parameters
-
size | The size of the other type to create from. |
◆ Size2() [2/3]
template<typename T >
template<typename U >
Creates a Size2
instance from a vector.
- Parameters
-
[in] | vector | The vector to create from. |
◆ Size2() [3/3]
Creates a Size2
instance from the value width and height.
- Parameters
-
[in] | width | The value width to create from. |
[in] | height | The value height to create from. |
◆ empty()
Checks whether the size is empty.
- Returns
- True if any of the size components is zero; false otherwise.
◆ Height()
Gets the height of the Size2
object.
- Returns
- The height of the
Size2
object.
◆ operator Vector2< U >()
template<typename T >
template<typename U >
Converts a type to a vector.
- Returns
- The vector.
◆ Width()
Gets the width of the Size2
object.
- Returns
- The width of the
Size2
object.
The documentation for this class was generated from the following file:
- olp-cpp-sdk-core/include/olp/core/math/Size.h