6#include <Common/assertion.h>
86 return static_cast<std::size_t
>(m_region.
getArea()) * m_depth;
91 PH_ASSERT_GE(m_region.
getWidth(), 0);
94 return static_cast<float64
>(m_region.
getWidth()) /
static_cast<float64
>(m_region.
getHeight());
99 return "region = " + m_region.
toString() +
", depth = " + std::to_string(m_depth);
Represents some amount of work.
Definition WorkUnit.h:17
std::size_t getVolume() const
Definition WorkUnit.h:82
WorkUnit()
Represents zero amount of work.
Definition WorkUnit.h:47
Region getRegion() const
Definition WorkUnit.h:72
float64 getAspectRatio() const
Definition WorkUnit.h:89
std::string toString() const
Definition WorkUnit.h:97
int64 getHeight() const
Definition WorkUnit.h:67
std::size_t getDepth() const
Definition WorkUnit.h:77
int64 getWidth() const
Definition WorkUnit.h:62
T getHeight() const
Definition TAABB2D.ipp:144
T getWidth() const
Definition TAABB2D.ipp:138
bool isEmpty() const
Definition TAABB2D.ipp:193
std::string toString() const
Definition TAABB2D.ipp:235
T getArea() const
Definition TAABB2D.ipp:69
The root for all renderer implementations.
Definition EEngineProject.h:6