Skip to content
Snippets Groups Projects
Commit 357076ae authored by Eric Wait's avatar Eric Wait
Browse files

added division to Vec

parent f351fd70
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,16 @@ DEVICE_PREFIX VEC_THIS_CLASS<T> operator- (const EXTERN_TYPE<T>& other) const
return outVec;
}
DEVICE_PREFIX VEC_THIS_CLASS<T> operator/ (const EXTERN_TYPE<T>& other) const
{
VEC_THIS_CLASS<T> outVec;
outVec.x = x / other.x;
outVec.y = y / other.y;
outVec.z = z / other.z;
return outVec;
}
// Adds each element by other
template<typename d>
DEVICE_PREFIX VEC_THIS_CLASS<T>& operator+= (const EXTERN_TYPE<T>& other) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment