Math Types

group FnMathTypes

Typedefs

typedef Matrix44<float> Matrix44f
typedef Matrix44<double> Matrix44d
typedef Vec2<int> Vec2i
typedef Vec2<float> Vec2f
typedef Vec2<double> Vec2d
typedef Vec3<int> Vec3i
typedef Vec3<float> Vec3f
typedef Vec3<double> Vec3d
typedef Vec4<int> Vec4i
typedef Vec4<float> Vec4f
typedef Vec4<double> Vec4d

Functions

Matrix44()
Matrix44(const T matrix[16])
Matrix44(T m00, T m01, T m02, T m03, T m10, T m11, T m12, T m13, T m20, T m21, T m22, T m23, T m30, T m31, T m32, T m33)
const T *getData() const
Vec2()
Vec2(T x, T y)
Vec2<T> operator-() const
Vec2<T> operator+(const Vec2 &rhs) const
Vec2<T> operator-(const Vec2 &rhs) const
T dot(const Vec2 &rhs) const
T length() const
Vec2<T> normalized() const
bool isParallelTo(const Vec2 &rhs) const
Vec2<T> operator*(const T scalar) const
Vec2<T> operator/(const T scalar) const
Vec3()
Vec3(T x, T y, T z)
Vec3<T> operator-() const
Vec3<T> operator+(const Vec3 &rhs) const
Vec3<T> operator-(const Vec3 &rhs) const
T dot(const Vec3 &rhs) const
T length() const
Vec3<T> normalized() const
Vec3<T> cross(const Vec3 &rhs) const
bool isParallelTo(const Vec3 &rhs) const
Vec3<T> operator*(const T scalar) const
Vec3<T> operator/(const T scalar) const
Vec4()
Vec4(T x, T y, T z, T w)
template <class T>
struct Matrix44

Public Functions

Matrix44()
Matrix44(const T matrix[16])
Matrix44(T m00, T m01, T m02, T m03, T m10, T m11, T m12, T m13, T m20, T m21, T m22, T m23, T m30, T m31, T m32, T m33)
const T *getData() const

Public Members

template<>
T Foundry::Katana::ViewerAPI::Matrix44<T>::data[16]
template <class T>
struct Vec2

Public Functions

Vec2()
Vec2(T x, T y)
Vec2<T> operator-() const
Vec2<T> operator+(const Vec2 &rhs) const
Vec2<T> operator-(const Vec2 &rhs) const
T dot(const Vec2 &rhs) const
T length() const
Vec2<T> normalized() const
bool isParallelTo(const Vec2 &rhs) const
Vec2<T> operator*(const T scalar) const
Vec2<T> operator/(const T scalar) const

Public Members

T x
T y
template <class T>
struct Vec3

Public Functions

Vec3()
Vec3(T x, T y, T z)
Vec3<T> operator-() const
Vec3<T> operator+(const Vec3 &rhs) const
Vec3<T> operator-(const Vec3 &rhs) const
T dot(const Vec3 &rhs) const
T length() const
Vec3<T> normalized() const
Vec3<T> cross(const Vec3 &rhs) const
bool isParallelTo(const Vec3 &rhs) const
Vec3<T> operator*(const T scalar) const
Vec3<T> operator/(const T scalar) const

Public Members

T x
T y
T z
template <class T>
struct Vec4

Public Functions

Vec4()
Vec4(T x, T y, T z, T w)

Public Members

T x
T y
T z
T w