Point2.h File Reference

Go to the source code of this file.

Classes

class  CubbyFlow::Point< T, 2 >
 2-D point class. More...
 

Namespaces

 CubbyFlow
 

Typedefs

template<typename T >
using CubbyFlow::Point2 = Point< T, 2 >
 Type alias for two dimensional point. More...
 
using CubbyFlow::Point2F = Point2< float >
 Float-type 2D point. More...
 
using CubbyFlow::Point2D = Point2< double >
 Double-type 2D point. More...
 
using CubbyFlow::Point2I = Point2< ssize_t >
 Integer-type 2D point. More...
 
using CubbyFlow::Point2UI = Point2< size_t >
 Unsigned integer-type 2D point. More...
 

Functions

template<typename T >
Point< T, 2 > CubbyFlow::operator+ (const Point< T, 2 > &a)
 Positive sign operator. More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator- (const Point< T, 2 > &a)
 Negative sign operator. More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator+ (T a, const Point< T, 2 > &b)
 Computes (a, a) + (b.x, b.y). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator+ (const Point< T, 2 > &a, const Point< T, 2 > &b)
 Computes (a.x, a.y) + (b.x, b.y). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator- (const Point< T, 2 > &a, T b)
 Computes (a.x, a.y) - (b, b). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator- (T a, const Point< T, 2 > &b)
 Computes (a, a) - (b.x, b.y). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator- (const Point< T, 2 > &a, const Point< T, 2 > &b)
 Computes (a.x, a.y) - (b.x, b.y). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator* (const Point< T, 2 > &a, T b)
 Computes (a.x, a.y) * (b, b). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator* (T a, const Point< T, 2 > &b)
 Computes (a, a) * (b.x, b.y). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator* (const Point< T, 2 > &a, const Point< T, 2 > &b)
 Computes (a.x, a.y) * (b.x, b.y). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator/ (const Point< T, 2 > &a, T b)
 Computes (a.x, a.y) / (b, b). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator/ (T a, const Point< T, 2 > &b)
 Computes (a, a) / (b.x, b.y). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::operator/ (const Point< T, 2 > &a, const Point< T, 2 > &b)
 Computes (a.x, a.y) / (b.x, b.y). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::Min (const Point< T, 2 > &a, const Point< T, 2 > &b)
 Returns element-wise min point: (min(a.x, b.x), min(a.y, b.y)). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::Max (const Point< T, 2 > &a, const Point< T, 2 > &b)
 Returns element-wise max point: (max(a.x, b.x), max(a.y, b.y)). More...
 
template<typename T >
Point< T, 2 > CubbyFlow::Clamp (const Point< T, 2 > &v, const Point< T, 2 > &low, const Point< T, 2 > &high)
 Returns element-wise clamped point. More...
 
template<typename T >
Point< T, 2 > CubbyFlow::Ceil (const Point< T, 2 > &a)
 Returns element-wise ceiled point. More...
 
template<typename T >
Point< T, 2 > CubbyFlow::Floor (const Point< T, 2 > &a)
 Returns element-wise floored point. More...