C4 Engine
C4 Engine API Documentation

VisibilityRegion::SphereVisible

Defined in:  C4Regions.h
Determines whether a sphere is visible in a region.
Prototype

bool SphereVisible(const Point3D& center, float radius) const;

Parameters
center The world-space center of the sphere.
radius The radius of the sphere.
Description
The SphereVisible function determines whether the sphere specified by the center and radius parameters is visible inside a region. If the sphere falls completely on the negative side of any single plane bounding the region, then the return value is false. Otherwise, the return value is true.
See Also

VisibilityRegion::BoxVisible

VisibilityRegion::QuadVisible

VisibilityRegion::PolygonVisible

VisibilityRegion::EllipsoidVisible

VisibilityRegion::CylinderVisible