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

Go to the source code of this file.

Classes

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

Namespaces

 jet
 

Typedefs

template<typename T >
using jet::Point3 = Point< T, 3 >
 Type alias for three dimensional point. More...
 
typedef Point3< float > jet::Point3F
 Float-type 3D point. More...
 
typedef Point3< double > jet::Point3D
 Double-type 3D point. More...
 
typedef Point3< ssize_t > jet::Point3I
 Integer-type 3D point. More...
 
typedef Point3< size_t > jet::Point3UI
 Unsigned integer-type 3D point. More...
 

Functions

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