C4 Engine
C4 Engine API Documentation

OcclusionRegion::CylinderOccluded

Defined in:  C4Regions.h
Determines whether a cylinder is occluded in a region.
Prototype

bool CylinderOccluded(const Point3D& p1, const Point3D& p2, float radius) const;

Parameters
p1 The world-space center of one end of the cylinder.
p2 The world-space center of the other end of the cylinder.
radius The radius of the cylinder.
Description
The CylinderOccluded function determines whether the cylinder specified by the p1, p2, and radius parameters is occluded by a region. If the cylinder falls completely on the positive side of all the planes bounding the region, then the return value is true. Otherwise, the return value is false.
See Also

OcclusionRegion::BoxOccluded

OcclusionRegion::QuadOccluded

OcclusionRegion::PolygonOccluded

OcclusionRegion::SphereOccluded

OcclusionRegion::EllipsoidOccluded