Jet  v1.3.3
Classes | Namespaces | Typedefs | Functions
point2.h File Reference
#include <jet/point.h>
#include <algorithm>
#include "detail/point2-inl.h"

Go to the source code of this file.

Classes

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

Namespaces

 jet
 

Typedefs

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

Functions

template<typename T >
Point< T, 2 > jet::operator+ (const Point< T, 2 > &a)
 Positive sign operator. More...
 
template<typename T >
Point2< T > jet::operator- (const Point2< T > &a)
 Negative sign operator. More...
 
template<typename T >
Point2< T > jet::operator+ (T a, const Point2< T > &b)
 Computes (a, a) + (b.x, b.y). More...
 
template<typename T >
Point2< T > jet::operator+ (const Point2< T > &a, const Point2< T > &b)
 Computes (a.x, a.y) + (b.x, b.y). More...
 
template<typename T >
Point2< T > jet::operator- (const Point2< T > &a, T b)
 Computes (a.x, a.y) - (b, b). More...
 
template<typename T >
Point2< T > jet::operator- (T a, const Point2< T > &b)
 Computes (a, a) - (b.x, b.y). More...
 
template<typename T >
Point2< T > jet::operator- (const Point2< T > &a, const Point2< T > &b)
 Computes (a.x, a.y) - (b.x, b.y). More...
 
template<typename T >
Point2< T > jet::operator* (const Point2< T > &a, T b)
 Computes (a.x, a.y) * (b, b). More...
 
template<typename T >
Point2< T > jet::operator* (T a, const Point2< T > &b)
 Computes (a, a) * (b.x, b.y). More...
 
template<typename T >
Point2< T > jet::operator* (const Point2< T > &a, const Point2< T > &b)
 Computes (a.x, a.y) * (b.x, b.y). More...
 
template<typename T >
Point2< T > jet::operator/ (const Point2< T > &a, T b)
 Computes (a.x, a.y) / (b, b). More...
 
template<typename T >
Point2< T > jet::operator/ (T a, const Point2< T > &b)
 Computes (a, a) / (b.x, b.y). More...
 
template<typename T >
Point2< T > jet::operator/ (const Point2< T > &a, const Point2< T > &b)
 Computes (a.x, a.y) / (b.x, b.y). More...
 
template<typename T >
Point2< T > jet::min (const Point2< T > &a, const Point2< T > &b)
 Returns element-wise min point: (min(a.x, b.x), min(a.y, b.y)). More...
 
template<typename T >
Point2< T > jet::max (const Point2< T > &a, const Point2< T > &b)
 Returns element-wise max point: (max(a.x, b.x), max(a.y, b.y)). More...
 
template<typename T >
Point2< T > jet::clamp (const Point2< T > &v, const Point2< T > &low, const Point2< T > &high)
 Returns element-wise clamped point. More...
 
template<typename T >
Point2< T > jet::ceil (const Point2< T > &a)
 Returns element-wise ceiled point. More...
 
template<typename T >
Point2< T > jet::floor (const Point2< T > &a)
 Returns element-wise floored point. More...