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
template<class T>
struct Matrix44
#include <FnMathTypes.h>

Template for a data structure representing a 4x4 matrix of values of the given value data type T.

Template Parameters:

T – The data type of the values to store in the matrix.

Public Functions

inline Matrix44()
inline Matrix44(const T matrix[16])
inline 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)
inline const T *getData() const
template<class T>
struct Vec2

Public Functions

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

Public Members

T x
T y
template<class T>
struct Vec3

Public Functions

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

Public Members

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

Public Functions

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

Public Members

T x
T y
T z
T w