Vectorization of single particle Tube DistanceToIn
- A particle can hit a tube in three ways:
– Top or bottom Z faces
- There’s no need to calculate both – only calculate
distance with the closest one (by taking the absolute value of Z), impossible to hit the other one
- No benefit from vectorization