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

Vec power function fix

parent ed9b3fee
No related branches found
No related tags found
No related merge requests found
......@@ -105,12 +105,12 @@ public:
// Raises each element to the pwr
template<typename d>
DEVICE_PREFIX VEC_THIS_CLASS<T> pow (d pwr) const
DEVICE_PREFIX VEC_THIS_CLASS<T> pwr (d pw) const
{
VEC_THIS_CLASS<T> outVec;
outVec.x = (T)(pow(x,pwr));
outVec.y = (T)(pow(y,pwr));
outVec.z = (T)(pow(z,pwr));
outVec.x = (T)(pow((double)x,pw));
outVec.y = (T)(pow((double)y,pw));
outVec.z = (T)(pow((double)z,pw));
return outVec;
}
......
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