Vector2-Impl.h File Reference
#include <Core/Math/MathUtils.h>
#include <cassert>
#include <limits>

Go to the source code of this file.

Namespaces

 CubbyFlow
 

Functions

template<typename T >
Vector< T, 2 > CubbyFlow::operator+ (const Vector< T, 2 > &a)
 Positive sign operator. More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator- (const Vector< T, 2 > &a)
 Negative sign operator. More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator+ (const Vector< T, 2 > &a, T b)
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator+ (T a, const Vector< T, 2 > &b)
 Computes (a, a) + (b.x, b.y). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator+ (const Vector< T, 2 > &a, const Vector< T, 2 > &b)
 Computes (a.x, a.y) + (b.x, b.y). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator- (const Vector< T, 2 > &a, T b)
 Computes (a.x, a.y) - (b, b). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator- (T a, const Vector< T, 2 > &b)
 Computes (a, a) - (b.x, b.y). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator- (const Vector< T, 2 > &a, const Vector< T, 2 > &b)
 Computes (a.x, a.y) - (b.x, b.y). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator* (const Vector< T, 2 > &a, T b)
 Computes (a.x, a.y) * (b, b). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator* (T a, const Vector< T, 2 > &b)
 Computes (a, a) * (b.x, b.y). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator* (const Vector< T, 2 > &a, const Vector< T, 2 > &b)
 Computes (a.x, a.y) * (b.x, b.y). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator/ (const Vector< T, 2 > &a, T b)
 Computes (a.x, a.y) / (b, b). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator/ (T a, const Vector< T, 2 > &b)
 Computes (a, a) / (b.x, b.y). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::operator/ (const Vector< T, 2 > &a, const Vector< T, 2 > &b)
 Computes (a.x, a.y) / (b.x, b.y). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::Min (const Vector< T, 2 > &a, const Vector< T, 2 > &b)
 Returns element-wise min vector: (min(a.x, b.x), min(a.y, b.y)). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::Max (const Vector< T, 2 > &a, const Vector< T, 2 > &b)
 Returns element-wise max vector: (max(a.x, b.x), max(a.y, b.y)). More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::Clamp (const Vector< T, 2 > &v, const Vector< T, 2 > &low, const Vector< T, 2 > &high)
 Returns element-wise clamped vector. More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::Ceil (const Vector< T, 2 > &a)
 Returns element-wise ceiled vector. More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::Floor (const Vector< T, 2 > &a)
 Returns element-wise floored vector. More...
 
template<typename T >
Vector< T, 2 > CubbyFlow::MonotonicCatmullRom (const Vector< T, 2 > &v0, const Vector< T, 2 > &v1, const Vector< T, 2 > &v2, const Vector< T, 2 > &v3, T f)
 Computes monotonic Catmull-Rom interpolation. More...