Class BoxGeometry#

Inheritance Relationships#

Base Type#

Class Documentation#

class BoxGeometry : public Karana::Scene::AbstractStaticGeometry#

Concrete box geometry class.

Public Functions

BoxGeometry(float width, float height, float depth)#

Constructor from side-lengths.

Parameters:
  • width – side length in the x direction

  • height – side length in the y direction

  • depth – side length in the z direction

BoxGeometry(const BoxGeometry&)#

Copy constructor.

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

side length in the x direction

const float height#

side length in the y direction

const float depth#

side length in the z direction