Class SphereGeometry#

Inheritance Relationships#

Base Type#

Class Documentation#

class SphereGeometry : public Karana::Scene::AbstractStaticGeometry#

Concrete sphere geometry class.

See Scene layer for more discussion on the scene layer.

Public Functions

SphereGeometry(float radius)#

Constructor from a radius.

Parameters:

radius – radius of the sphere

SphereGeometry(const SphereGeometry&)#

Copy constructor.

SphereGeometry &operator=(const SphereGeometry&) = delete#
SphereGeometry(SphereGeometry&&) = delete#
SphereGeometry &operator=(SphereGeometry&&) = 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 sphere