Back to class index
| Ray::ProjectToAxisSyntaxvoid Ray::ProjectToAxis(const float4 &direction, float &outMin, float &outMax) const; [11 lines of code]Projects this Ray onto the given 1D axis direction vector. This function collapses this Ray onto an 1D axis for the purposes of e.g. separate axis test computations. The function returns a 1D range [outMin, outMax] denoting the interval of the projection. Parametersconst float4 &directionThe 1D axis to project to. This vector may be unnormalized, in which case the output of this function gets scaled by the length of this vector. float &outMin [out]Returns the minimum extent of this object along the projection axis.float &outMax [out]Returns the maximum extent of this object along the projection axis. |