Lines Matching refs:v1
88 inline _D3DVECTOR operator + (const _D3DVECTOR& v1, const _D3DVECTOR& v2)
90 return _D3DVECTOR(v1.x+v2.x, v1.y+v2.y, v1.z+v2.z);
93 inline _D3DVECTOR operator - (const _D3DVECTOR& v1, const _D3DVECTOR& v2)
95 return _D3DVECTOR(v1.x-v2.x, v1.y-v2.y, v1.z-v2.z);
128 inline D3DVALUE DotProduct(const _D3DVECTOR& v1, const _D3DVECTOR& v2)
130 return v1.x*v2.x + v1.y*v2.y + v1.z*v2.z;
133 inline _D3DVECTOR CrossProduct(const _D3DVECTOR& v1, const _D3DVECTOR& v2)
137 res.x = v1.y * v2.z - v1.z * v2.y;
138 res.y = v1.z * v2.x - v1.x * v2.z;
139 res.z = v1.x * v2.y - v1.y * v2.x;