GameKit  0.0.1a
C++ gamedev tools
Public Member Functions | Public Attributes | List of all members
gk::Box< T > Class Template Reference

#include <Box.hpp>

Public Member Functions

 Box ()=default
 
 Box (T _x, T _y, T _z, T _width, T _height, T _depth)
 
 Box (const Vector3< T > &_position, const Vector3< T > &_size)
 
template<typename U >
 Box (const Box< U > &box)
 
void reset (T _x, T _y, T _z, T _width, T _height, T _depth)
 
void reset (Box< T > box)
 
void move (T _x, T _y, T _z)
 
void move (Vector3< T > d)
 
bool intersects (const Box< T > &box) const
 
Vector3< T > position () const
 
void setPosition (Vector3< T > vector3)
 
Box operator+ (const Vector3< T > &vector3) const
 
Box operator- (const Vector3< T > &vector3) const
 
Boxoperator+= (const Vector3< T > &vector3)
 
Boxoperator-= (const Vector3< T > &vector3)
 

Public Attributes

x = 0
 
y = 0
 
z = 0
 
width = 0
 
height = 0
 
depth = 0
 

Detailed Description

template<typename T>
class gk::Box< T >

Definition at line 24 of file Box.hpp.

Constructor & Destructor Documentation

§ Box() [1/4]

template<typename T>
gk::Box< T >::Box ( )
default

§ Box() [2/4]

template<typename T>
gk::Box< T >::Box ( _x,
_y,
_z,
_width,
_height,
_depth 
)
inline

Definition at line 28 of file Box.hpp.

§ Box() [3/4]

template<typename T>
gk::Box< T >::Box ( const Vector3< T > &  _position,
const Vector3< T > &  _size 
)
inline

Definition at line 32 of file Box.hpp.

§ Box() [4/4]

template<typename T>
template<typename U >
gk::Box< T >::Box ( const Box< U > &  box)
inline

Definition at line 37 of file Box.hpp.

Member Function Documentation

§ intersects()

template<typename T>
bool gk::Box< T >::intersects ( const Box< T > &  box) const
inline

Definition at line 54 of file Box.hpp.

§ move() [1/2]

template<typename T>
void gk::Box< T >::move ( _x,
_y,
_z 
)
inline

Definition at line 51 of file Box.hpp.

§ move() [2/2]

template<typename T>
void gk::Box< T >::move ( Vector3< T >  d)
inline

Definition at line 52 of file Box.hpp.

§ operator+()

template<typename T>
Box gk::Box< T >::operator+ ( const Vector3< T > &  vector3) const
inline

Definition at line 83 of file Box.hpp.

§ operator+=()

template<typename T>
Box& gk::Box< T >::operator+= ( const Vector3< T > &  vector3)
inline

Definition at line 86 of file Box.hpp.

§ operator-()

template<typename T>
Box gk::Box< T >::operator- ( const Vector3< T > &  vector3) const
inline

Definition at line 84 of file Box.hpp.

§ operator-=()

template<typename T>
Box& gk::Box< T >::operator-= ( const Vector3< T > &  vector3)
inline

Definition at line 87 of file Box.hpp.

§ position()

template<typename T>
Vector3<T> gk::Box< T >::position ( ) const
inline

Definition at line 79 of file Box.hpp.

§ reset() [1/2]

template<typename T>
void gk::Box< T >::reset ( _x,
_y,
_z,
_width,
_height,
_depth 
)
inline

Definition at line 40 of file Box.hpp.

§ reset() [2/2]

template<typename T>
void gk::Box< T >::reset ( Box< T >  box)
inline

Definition at line 49 of file Box.hpp.

§ setPosition()

template<typename T>
void gk::Box< T >::setPosition ( Vector3< T >  vector3)
inline

Definition at line 81 of file Box.hpp.

Member Data Documentation

§ depth

template<typename T>
T gk::Box< T >::depth = 0

Definition at line 95 of file Box.hpp.

§ height

template<typename T>
T gk::Box< T >::height = 0

Definition at line 94 of file Box.hpp.

§ width

template<typename T>
T gk::Box< T >::width = 0

Definition at line 93 of file Box.hpp.

§ x

template<typename T>
T gk::Box< T >::x = 0

Definition at line 89 of file Box.hpp.

§ y

template<typename T>
T gk::Box< T >::y = 0

Definition at line 90 of file Box.hpp.

§ z

template<typename T>
T gk::Box< T >::z = 0

Definition at line 91 of file Box.hpp.


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