Lines Matching refs:v1
95 inline _D3DVECTOR operator + (const _D3DVECTOR& v1, const _D3DVECTOR& v2)
97 return _D3DVECTOR(v1.x+v2.x, v1.y+v2.y, v1.z+v2.z);
100 inline _D3DVECTOR operator - (const _D3DVECTOR& v1, const _D3DVECTOR& v2)
102 return _D3DVECTOR(v1.x-v2.x, v1.y-v2.y, v1.z-v2.z);
135 inline D3DVALUE DotProduct(const _D3DVECTOR& v1, const _D3DVECTOR& v2)
137 return v1.x*v2.x + v1.y*v2.y + v1.z*v2.z;
140 inline _D3DVECTOR CrossProduct(const _D3DVECTOR& v1, const _D3DVECTOR& v2)
144 res.x = v1.y * v2.z - v1.z * v2.y;
145 res.y = v1.z * v2.x - v1.x * v2.z;
146 res.z = v1.x * v2.y - v1.y * v2.x;