Jet  v1.3.3
Classes | Namespaces | Functions
size2.h File Reference
#include <jet/size.h>
#include "detail/size2-inl.h"

Go to the source code of this file.

Classes

class  jet::Size2
 2-D size class. More...
 

Namespaces

 jet
 

Functions

Size2 jet::operator+ (const Size2 &a)
 Positive sign operator. More...
 
Size2 jet::operator- (const Size2 &a)
 Negative sign operator. More...
 
Size2 jet::operator+ (size_t a, const Size2 &b)
 Computes (a, a) + (b.x, b.y). More...
 
Size2 jet::operator+ (const Size2 &a, const Size2 &b)
 Computes (a.x, a.y) + (b.x, b.y). More...
 
Size2 jet::operator- (const Size2 &a, size_t b)
 Computes (a.x, a.y) - (b, b). More...
 
Size2 jet::operator- (size_t a, const Size2 &b)
 Computes (a, a) - (b.x, b.y). More...
 
Size2 jet::operator- (const Size2 &a, const Size2 &b)
 Computes (a.x, a.y) - (b.x, b.y). More...
 
Size2 jet::operator* (const Size2 &a, size_t b)
 Computes (a.x, a.y) * (b, b). More...
 
Size2 jet::operator* (size_t a, const Size2 &b)
 Computes (a, a) * (b.x, b.y). More...
 
Size2 jet::operator* (const Size2 &a, const Size2 &b)
 Computes (a.x, a.y) * (b.x, b.y). More...
 
Size2 jet::operator/ (const Size2 &a, size_t b)
 Computes (a.x, a.y) / (b, b). More...
 
Size2 jet::operator/ (size_t a, const Size2 &b)
 Computes (a, a) / (b.x, b.y). More...
 
Size2 jet::operator/ (const Size2 &a, const Size2 &b)
 Computes (a.x, a.y) / (b.x, b.y). More...
 
Size2 jet::min (const Size2 &a, const Size2 &b)
 Returns element-wise min size: (min(a.x, b.x), min(a.y, b.y)). More...
 
Size2 jet::max (const Size2 &a, const Size2 &b)
 Returns element-wise max size: (max(a.x, b.x), max(a.y, b.y)). More...
 
Size2 jet::clamp (const Size2 &v, const Size2 &low, const Size2 &high)
 Returns element-wise clamped size. More...
 
Size2 jet::ceil (const Size2 &a)
 Returns element-wise ceiled size. More...
 
Size2 jet::floor (const Size2 &a)
 Returns element-wise floored size. More...