#include <Sphere.h>
◆ SSphere() [1/2]
◆ SSphere() [2/2]
| SSphere::SSphere |
( |
const double |
rad | ) |
|
|
inline |
◆ HorizonCulling()
| bool SSphere::HorizonCulling |
( |
const vector3d & |
view, |
|
|
const SSphere & |
obj |
|
) |
| const |
Performs horizon culling with an object's bounding sphere, given a view point. This function checks whether the object's sphere is inside the view cone formed by the view point and this sphere. The view cone is capped so that the visibility is false only in the 'shadow' of this sphere.
- Parameters
-
| view | Position of view point in world space |
| obj | Bounding sphere of another object. |
- Returns
- true if the object's bounding sphere is visible from the viewpoint, false if the sphere is in the shadow cone AND not in front of the capping plane.
◆ m_centre
◆ m_radius
The documentation for this struct was generated from the following files: