BmnRoot
Loading...
Searching...
No Matches
vec_arithmetic.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define vec_arithmetic(V, S)
 

Macro Definition Documentation

◆ vec_arithmetic

#define vec_arithmetic (   V,
 
)
Value:
friend V operator-( const V &a ){ return V(0) - a; } \
friend V operator+( const V &a ){ return a; } \
friend V operator+( const V &a, const S &b ){ return a + V( b ); } \
friend V operator-( const V &a, const S &b ){ return a - V( b ); } \
friend V operator*( const V &a, const S &b ){ return a * V( b ); } \
friend V operator/( const V &a, const S &b ){ return a / V( b ); } \
friend V operator+( const S &a, const V &b ){ return V(a)+b; } \
friend V operator-( const S &a, const V &b ){ return V(a)-b; } \
friend V operator*( const S &a, const V &b ){ return V(a)*b; } \
friend V operator/( const S &a, const V &b ){ return V(a)/b; } \
friend void operator+=( V &a, const V &b ){ a = a + b ; } \
friend void operator-=( V &a, const V &b ){ a = a - b ; } \
friend void operator*=( V &a, const V &b ){ a = a * b ; } \
friend void operator/=( V &a, const V &b ){ a = a / b ; } \
friend void operator+=( V &a, const S &b ){ a = a + b ; } \
friend void operator-=( V &a, const S &b ){ a = a - b ; } \
friend void operator*=( V &a, const S &b ){ a = a * b ; } \
friend void operator/=( V &a, const S &b ){ a = a / b ; }
friend F32vec4 operator/(const F32vec4 &a, const F32vec4 &b)
Definition P4_F32vec4.h:27
friend F32vec4 operator-(const F32vec4 &a, const F32vec4 &b)
Definition P4_F32vec4.h:25
friend F32vec4 operator+(const F32vec4 &a, const F32vec4 &b)
Definition P4_F32vec4.h:24
friend F32vec4 operator*(const F32vec4 &a, const F32vec4 &b)
Definition P4_F32vec4.h:26
friend void operator*=(F32vec1 &a, const F32vec1 &b)
friend void operator+=(F32vec1 &a, const F32vec1 &b)
friend void operator/=(F32vec1 &a, const F32vec1 &b)
friend void operator-=(F32vec1 &a, const F32vec1 &b)

Definition at line 6 of file vec_arithmetic.h.