VisibilityRegion::CylinderVisible
Defined in:
Determines whether a cylinder is visible in a region.
C4Regions.hPrototype
bool CylinderVisible(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 CylinderVisible function determines whether the cylinder specified by the p1, p2, and radius parameters is visible inside a region. The cylinder's axis is clipped as it is tested against each plane bounding the region. If at any point the clipped cylinder falls completely on the negative side of a single plane then the return value is false. Otherwise, the return value is true.
See Also
VisibilityRegion::PolygonVisible
