cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Mat4.h File Reference
#include "base/ccMacros.h"
#include "math/Vec3.h"
#include "math/Vec4.h"
#include "math/Mat4.inl"

Classes

class  Mat4
 Copyright 2013 BlackBerry Inc. More...
 

Functions

Vec3operator*= (Vec3 &v, const Mat4 &m)
 Transforms the given vector by the given matrix. More...
 
const Vec3 operator* (const Mat4 &m, const Vec3 &v)
 Transforms the given vector by the given matrix. More...
 
Vec4operator*= (Vec4 &v, const Mat4 &m)
 Transforms the given vector by the given matrix. More...
 
const Vec4 operator* (const Mat4 &m, const Vec4 &v)
 Transforms the given vector by the given matrix. More...
 

Function Documentation

const Vec3 operator* ( const Mat4 m,
const Vec3 v 
)
inline

Transforms the given vector by the given matrix.

Note: this treats the given vector as a vector and not as a point.

Parameters
mThe matrix to transform by.
vThe vector to transform.
Returns
The resulting transformed vector.
const Vec4 operator* ( const Mat4 m,
const Vec4 v 
)
inline

Transforms the given vector by the given matrix.

Note: this treats the given vector as a vector and not as a point.

Parameters
mThe matrix to transform by.
vThe vector to transform.
Returns
The resulting transformed vector.
Vec3& operator*= ( Vec3 v,
const Mat4 m 
)
inline

Transforms the given vector by the given matrix.

Note: this treats the given vector as a vector and not as a point.

Parameters
vThe vector to transform.
mThe matrix to transform by.
Returns
This vector, after the transformation occurs.
Vec4& operator*= ( Vec4 v,
const Mat4 m 
)
inline

Transforms the given vector by the given matrix.

Note: this treats the given vector as a vector and not as a point.

Parameters
vThe vector to transform.
mThe matrix to transform by.
Returns
This vector, after the transformation occurs.