AnsweredAssumed Answered

Largest component in vector

Question asked by tgreen on May 2, 2013
Latest reply on May 3, 2013 by tgreen

I am wondering if in opencl there is an operator to get the maximal component of a vector, so max([1,2,3]) would then return 3 and max([4,3,2]) would return 4 etc.

 

For collision detection I wanted to make an initial broadphase step before the more costly calculations. In this broadphase step I wanted to simply see what the maximal separation along x,y,z was and then see what the objects velocity along that axis was to see if a collision pair would have any chance of touching during a timestep. For this it seemed like a simple fast solution to get the maximal vector component, and I was expecting this to be supported untill reading the specs which seem to only work with two arguments.

Outcomes