16 #ifndef MATHFU_GLSL_MAPPINGS_H_
17 #define MATHFU_GLSL_MAPPINGS_H_
21 #include "mathfu/rect.h"
102 inline typename TV::Scalar
dot(
const TV& v1,
const TV& v2) {
103 return TV::DotProduct(v1,v2);
112 return v1.Normalized();
119 #endif // MATHFU_GLSL_MAPPINGS_H_
Definition: vector_3.h:24
mathfu::Quaternion< float > quat
Definition: glsl_mappings.h:77
Vector< int, 4 > vec4i
4-dimensional int Vector.
Definition: glsl_mappings.h:52
VectorPacked< int, 3 > vec3i_packed
3-dimensional int packed Vector (VectorPacked).
Definition: glsl_mappings.h:71
Vector of d elements with type T.
Definition: vector.h:63
Rect of type T containing position (pos) and width.
Definition: rect.h:33
Vector< T, 3 > cross(const Vector< T, 3 > &v1, const Vector< T, 3 > &v2)
Calculate the cross product of two 3-dimensional Vectors.
Definition: glsl_mappings.h:92
Matrix stores a set of "rows" by "columns" elements of type T and provides functions that operate on ...
Definition: matrix.h:147
Rect< int > recti
Rect composed of type int.
Definition: glsl_mappings.h:84
VectorPacked< float, 4 > vec4_packed
4-dimensional float packed Vector (VectorPacked).
Definition: glsl_mappings.h:66
Rect< double > rectd
Rect composed of type double.
Definition: glsl_mappings.h:82
VectorPacked< int, 2 > vec2i_packed
2-dimensional int packed Vector (VectorPacked).
Definition: glsl_mappings.h:69
TV normalize(const TV &v1)
Normalize an N-dimensional Vector of an arbitrary type.
Definition: glsl_mappings.h:111
VectorPacked< float, 2 > vec2_packed
2-dimensional float packed Vector (VectorPacked).
Definition: glsl_mappings.h:62
Matrix class and functions.
Vector< float, 3 > vec3
3-dimensional float Vector.
Definition: glsl_mappings.h:43
Matrix< float, 4, 4 > mat4
3x3 float Matrix.
Definition: glsl_mappings.h:59
VectorPacked< float, 3 > vec3_packed
3-dimensional float packed Vector (VectorPacked).
Definition: glsl_mappings.h:64
Vector< float, 2 > vec2
2-dimensional float Vector.
Definition: glsl_mappings.h:41
Packed N-dimensional vector.
Definition: vector.h:121
Definition: vector_4_simd.h:38
Quaternion class and functions.
Vector< int, 2 > vec2i
2-dimensional int Vector.
Definition: glsl_mappings.h:48
Rect< float > rectf
Rect composed of type float.
Definition: glsl_mappings.h:80
Vector class and functions.
TV::Scalar dot(const TV &v1, const TV &v2)
Calculate the dot product of two N-dimensional Vectors of any type.
Definition: glsl_mappings.h:102
Vector< float, 4 > vec4
4-dimensional float Vector.
Definition: glsl_mappings.h:45
Stores a Quaternion of type T and provides a set of utility operations on each Quaternion.
Definition: quaternion.h:47
Matrix< float, 3, 3 > mat3
3x3 float Matrix.
Definition: glsl_mappings.h:57
Matrix< float, 2, 2 > mat2
2x2 float Matrix.
Definition: glsl_mappings.h:55
static Vector< T, 3 > CrossProduct(const Vector< T, 3 > &v1, const Vector< T, 3 > &v2)
Calculate the cross product of two vectors.
Definition: vector.h:446
Vector< int, 3 > vec3i
3-dimensional int Vector.
Definition: glsl_mappings.h:50
VectorPacked< int, 4 > vec4i_packed
4-dimensional int packed Vector (VectorPacked).
Definition: glsl_mappings.h:73