Back to class index
| Frustum::ProjectToAxisSyntaxvoid Frustum::ProjectToAxis(const float4 &direction, float &outMin, float &outMax) const; [13 lines of code]Projects this Frustum onto the given 1D axis direction vector. This function collapses this Frustum 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. |