C4 Engine
C4 Engine API Documentation

class AnnulusGeometry

Defined in:  C4Primitives.h
The AnnulusGeometry class represents an annulus primitive node in a world.
Definition

class AnnulusGeometry final : public PrimitiveGeometry

Constructor

AnnulusGeometry(const Vector2D& inner, const Vector2D& outer);

Parameters
inner The size of the inner hole.
outer The size of the outer disk.
Description
The AnnulusGeometry class represents an annulus primitive node in a world. In its local coordinate space, an annulus primitive lies in the x-y plane with the center at the origin. The components of the inner parameter define the semiaxis lengths of the inner hole in the x and y directions, and the components of the outer parameter define the semiaxis lengths of the outer disk in the x and y directions.

When a new annulus geometry is created, the corresponding AnnulusGeometryObject is automatically created and referenced by the geometry node.
Base Classes
PrimitiveGeometry An annulus is a specific type of primitive geometry.
See Also

AnnulusGeometryObject