Class spatial_entity

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class spatial_entity : public cosm::repr::base_entity

Subclassed by cosm::repr::spatial_entity2D

Public Types

using dbb_type = rspatial::bounding_box<rmath::vector3z>
using rbb_type = rspatial::bounding_box<rmath::vector3d>

Public Functions

inline spatial_entity(const rtypes::type_uuid &id, const rmath::vector3d &dims, const rmath::vector3d &center, const rspatial::euclidean_dist &factor)
inline spatial_entity(const rtypes::type_uuid &id, const rmath::vector3d &dims, const rspatial::euclidean_dist &factor)
inline spatial_entity(const rtypes::type_uuid &id, const rmath::vector3z &dims, const rmath::vector3z &center, const rspatial::euclidean_dist &factor)
inline spatial_entity(const rtypes::type_uuid &id, const rmath::vector3z &dims, const rspatial::euclidean_dist &factor)
~spatial_entity(void) override = default
virtual entity_dimensionality dimensionality(void) const = 0

Return whether the entity is 2D or 3D.

Protected Functions

inline auto &dbb(void)
inline const auto &dbb(void) const
inline auto &rbb(void)
inline const auto &rbb(void) const