LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LibCarna::base::BoundingVolume Class Referenceabstract

Represents a Geometry minimal boundary volume of simple geometric shape. The volume is centered within its local coordinate system. More...

#include <BoundingVolume.hpp>

+ Inheritance diagram for LibCarna::base::BoundingVolume:

Public Member Functions

 BoundingVolume ()
 Instantiates.
 
virtual ~BoundingVolume ()
 Deletes.
 
virtual void computeClosemostPoint (math::Vector3f &out, const math::Vector3f &reference) const =0
 Computes the point out in model space that is close-most to reference, that is also in model space.
 
void setTransform (const math::Matrix4f &transform)
 Sets the transform from the local coordinate system of this bounding volume to the Geometry object that uses it.
 
const math::Matrix4ftransform () const
 Tells the transform from the local coordinate system of this bounding volume to the model space of the Geometry object that uses it.
 
const math::Matrix4finverseTransform () const
 Tells the transform from the model space of the Geometry object that uses this bounding volume to its local coordinate system.
 

Detailed Description

Represents a Geometry minimal boundary volume of simple geometric shape. The volume is centered within its local coordinate system.

Author
Leonid Kostrykin

Definition at line 45 of file BoundingVolume.hpp.

Member Function Documentation

◆ computeClosemostPoint()

virtual void LibCarna::base::BoundingVolume::computeClosemostPoint ( math::Vector3f out,
const math::Vector3f reference 
) const
pure virtual

Computes the point out in model space that is close-most to reference, that is also in model space.

Implemented in LibCarna::base::BoundingBox, and LibCarna::base::BoundingSphere.


The documentation for this class was generated from the following file: