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

Classes

class  Vec3
 Defines a 3-element floating point vector. More...
 

Functions

const Vec3  (float x, const Vec3 &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 Vec3 operator* ( float  x,
const Vec3 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 Vec3 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 Vec3 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.