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