GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::ObjectBounds< N > Struct Template Reference

Bounds of an object. More...

#include <GREM/physics/objects.hpp>

Public Member Functions

constexpr bool operator== (const ObjectBounds &other) const noexcept=default
 Compare these bounds to another for equality.

Public Attributes

Box< N > boundingBox {}
 Axis-aligned bounding box of the object.

Detailed Description

template<size_t N>
struct grem::physics::ObjectBounds< N >

Bounds of an object.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

Member Function Documentation

◆ operator==()

template<size_t N>
bool grem::physics::ObjectBounds< N >::operator== ( const ObjectBounds< N > & other) const
nodiscardconstexprdefaultnoexcept

Compare these bounds to another for equality.

Parameters
otherthe bounds to compare these to.
Returns
true if the bounds are equal, false otherwise.

Member Data Documentation

◆ boundingBox

template<size_t N>
Box<N> grem::physics::ObjectBounds< N >::boundingBox {}

Axis-aligned bounding box of the object.


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