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

Classes

class  Vec4
 Defines 4-element floating point vector. More...
 

Functions

const Vec4  (float x, const Vec4 &v)
 Calculates the scalar product of the given vector with the given value. More...
 
var  ( var x, var v)
 Calculates the scalar product of the given vector with the given value. More...
 
local  ( local x, local v)
 Calculates the scalar product of the given vector with the given value. More...
 

Function Documentation

const Vec4 operator* ( float  x,
const Vec4 v 
)
inline

Calculates the scalar product of the given vector with the given value.

Parameters
xThe value to scale by.
vThe vector to scale.
Returns
The scaled vector.
const Vec4 operator* ( var  x,
var  v 
)
inline

Calculates the scalar product of the given vector with the given value.

Parameters
xThe value to scale by.
vThe vector to scale.
Returns
The scaled vector.
const Vec4 operator* ( local  x,
local  v 
)
inline

Calculates the scalar product of the given vector with the given value.

Parameters
xThe value to scale by.
vThe vector to scale.
Returns
The scaled vector.