GA::kit v0.3
G&A's in-house C++ application framework
Loading...
Searching...
No Matches
ga::Bounds Class Reference

#include <bounds_component.h>

Inheritance diagram for ga::Bounds:
ga::Component

Public Member Functions

 Bounds ()
 
 Bounds (vec2 min_, vec2 max_)
 
 Bounds (vec3 min_, vec3 max_)
 
 Bounds (const Rect &rect)
 
 Bounds (const std::vector< vec3 > &points)
 
Boundsinclude (vec3 pt)
 
Boundstranslate (const vec3 &delta)
 
vec3 center () const
 
vec3 size () const
 
bool contains (const vec3 &pos) const
 
- Public Member Functions inherited from ga::Component
 Component ()=default
 
virtual ~Component ()=default
 
 Component (const Component &other)
 
Componentoperator= (const Component &other)
 
std::shared_ptr< NodegetNode () const
 

Public Attributes

vec3 min = vec3( 0.f )
 
vec3 max = vec3( 0.f )
 

Additional Inherited Members

- Protected Member Functions inherited from ga::Component
virtual void update ()
 
virtual void draw ()
 
virtual void setNode (std::shared_ptr< Node > node)
 
virtual void setScene (std::shared_ptr< Scene > scene)
 
- Protected Attributes inherited from ga::Component
std::weak_ptr< Nodem_node
 

Constructor & Destructor Documentation

◆ Bounds() [1/5]

ga::Bounds::Bounds ( )
inline

◆ Bounds() [2/5]

ga::Bounds::Bounds ( vec2  min_,
vec2  max_ 
)
inline

◆ Bounds() [3/5]

ga::Bounds::Bounds ( vec3  min_,
vec3  max_ 
)
inline

◆ Bounds() [4/5]

ga::Bounds::Bounds ( const Rect rect)
inline

◆ Bounds() [5/5]

ga::Bounds::Bounds ( const std::vector< vec3 > &  points)
inline

Member Function Documentation

◆ center()

vec3 ga::Bounds::center ( ) const
inline

◆ contains()

bool ga::Bounds::contains ( const vec3 &  pos) const
inline

◆ include()

Bounds & ga::Bounds::include ( vec3  pt)
inline

◆ size()

vec3 ga::Bounds::size ( ) const
inline

◆ translate()

Bounds & ga::Bounds::translate ( const vec3 &  delta)
inline

Member Data Documentation

◆ max

vec3 ga::Bounds::max = vec3( 0.f )

◆ min

vec3 ga::Bounds::min = vec3( 0.f )

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