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

Vec3 (Vec3 &v, const Mat4 &m)
 Transforms the given vector by the given matrix. More...
 
const Vec3  (const Mat4 &m, const Vec3 &v)
 Transforms the given vector by the given matrix. More...
 
var  ( var m, var v)
 Transforms the given vector by the given matrix. More...
 
local  ( local m, local v)
 Transforms the given vector by the given matrix. More...
 
Vec4 (Vec4 &v, const Mat4 &m)
 Transforms the given vector by the given matrix. More...
 
var  ( var v, var m)
 Transforms the given vector by the given matrix. More...
 
local  ( local v, local m)
 Transforms the given vector by the given matrix. More...
 
const Vec4  (const Mat4 &m, const Vec4 &v)
 Transforms the given vector by the given matrix. More...
 
local  ( local m, local v)
 Transforms the given vector by the given matrix. More...
 

Function Documentation

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.
Vec3& operator*= ( var  v,
var  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.
Vec3& operator*= ( local  v,
local  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.
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 Vec3 operator* ( var  m,
var  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 Vec3 operator* ( local  m,
local  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.
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.
Vec4& operator*= ( var  v,
var  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*= ( local  v,
local  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.
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.
const Vec4 operator* ( var  m,
var  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* ( local  m,
local  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.