C4 Engine
C4 Engine API Documentation

class SphereVolume

Defined in:  C4Volumes.h
The SphereVolume class encapsulates data pertaining to a generic sphere volume.

class SphereVolume : public Volume

Member Functions
SphereVolume::GetSphereSize Returns the sphere size.
SphereVolume::SetSphereSize Sets the sphere size.

SphereVolume(const Vector3D& size);

size The size of the sphere.
The SphereVolume class encapsulates the physical dimensions of a generic spherical volume and functionality that is used by various subclasses throughout the engine.

The center of the sphere coincides with the origin, and the three components of the size parameter correspond to the radii along the x, y, and z axes.
Base Classes
Volume A SphereVolume is a generic volume.