Class CapsuleGeometry#

Inheritance Relationships#

Base Type#

Class Documentation#

class CapsuleGeometry : public Karana::Scene::AbstractStaticGeometry#

Geometry class for a cylinder capped with hemispheres.

See Scene layer for more discussion on the scene layer.

Public Functions

CapsuleGeometry(float radius, float height)#

Constructor from a radius and height.

Parameters:
  • radius – radius of the capsule

  • height – height of the capsule’s middle section

CapsuleGeometry(const CapsuleGeometry&)#

Copy constructor.

CapsuleGeometry &operator=(const CapsuleGeometry&) = delete#
CapsuleGeometry(CapsuleGeometry&&) = delete#
CapsuleGeometry &operator=(CapsuleGeometry&&) = delete#
virtual operator StaticMeshGeometry() const override#

Convert to a triangular mesh.

Returns:

The converted mesh

virtual Karana::Math::AABB aabb() const override#

Compute the axis-aligned bounding box (AABB)

Returns:

The AABB

Public Members

const float radius#

radius of the capsule

const float height#

height of the capsule’s middle section