sead
Loading...
Searching...
No Matches
sead::BoundBox2< T > Class Template Reference

#include <seadBoundBox.h>

Public Types

typedef sead::Vector2< T > Vector2

Public Member Functions

 BoundBox2 ()
 BoundBox2 (T x0, T y0, T x1, T y1)
 BoundBox2 (const Vector2 &min, const Vector2 &max)
T getSizeX () const
T getSizeY () const
T getHalfSizeX () const
T getHalfSizeY () const
const Vector2 & getMin () const
const Vector2 & getMax () const
Vector2 getBL () const
Vector2 getBR () const
Vector2 getTL () const
Vector2 getTR () const
Vector2 getCenter () const
void getCenter (Vector2 *p) const
bool isUndef () const
bool isInside (const Vector2 &p) const
void setUndef ()
void set (T x0, T y0, T x1, T y1)
void set (const Vector2 &min, const Vector2 &max)
void setMin (const Vector2 &min)
void setMax (const Vector2 &max)
void setFromCenterAndXY (T centerX, T centerY, T sizeX, T sizeY)
void setFromCornerAndXY (T cornerX, T cornerY, T sizeX, T sizeY)
void setFromCenterAndXY (const Vector2 &center, T sizeX, T sizeY)
void setFromCornerAndXY (const Vector2 &corner, T sizeX, T sizeY)
void offset (T dx, T dy)
void offset (const Vector2 &dv)
void scaleX (T sx)
void scaleY (T sy)

Private Attributes

Vector2 mMin
Vector2 mMax

Member Typedef Documentation

◆ Vector2

template<typename T>
typedef sead::Vector2<T> sead::BoundBox2< T >::Vector2

Constructor & Destructor Documentation

◆ BoundBox2() [1/3]

template<typename T>
sead::BoundBox2< T >::BoundBox2 ( )
inline

◆ BoundBox2() [2/3]

template<typename T>
sead::BoundBox2< T >::BoundBox2 ( T x0,
T y0,
T x1,
T y1 )
inline

◆ BoundBox2() [3/3]

template<typename T>
sead::BoundBox2< T >::BoundBox2 ( const Vector2 & min,
const Vector2 & max )
inline

Member Function Documentation

◆ getSizeX()

template<typename T>
T sead::BoundBox2< T >::getSizeX ( ) const
inline

◆ getSizeY()

template<typename T>
T sead::BoundBox2< T >::getSizeY ( ) const
inline

◆ getHalfSizeX()

template<typename T>
T sead::BoundBox2< T >::getHalfSizeX ( ) const
inline

◆ getHalfSizeY()

template<typename T>
T sead::BoundBox2< T >::getHalfSizeY ( ) const
inline

◆ getMin()

template<typename T>
const Vector2 & sead::BoundBox2< T >::getMin ( ) const
inline

◆ getMax()

template<typename T>
const Vector2 & sead::BoundBox2< T >::getMax ( ) const
inline

◆ getBL()

template<typename T>
Vector2 sead::BoundBox2< T >::getBL ( ) const
inline

◆ getBR()

template<typename T>
Vector2 sead::BoundBox2< T >::getBR ( ) const
inline

◆ getTL()

template<typename T>
Vector2 sead::BoundBox2< T >::getTL ( ) const
inline

◆ getTR()

template<typename T>
Vector2 sead::BoundBox2< T >::getTR ( ) const
inline

◆ getCenter() [1/2]

template<typename T>
Vector2< T > sead::BoundBox2< T >::getCenter ( ) const
inline

◆ getCenter() [2/2]

template<typename T>
void sead::BoundBox2< T >::getCenter ( Vector2 * p) const
inline

◆ isUndef()

template<typename T>
bool sead::BoundBox2< T >::isUndef ( ) const
inline

◆ isInside()

template<typename T>
bool sead::BoundBox2< T >::isInside ( const Vector2 & p) const
inline

◆ setUndef()

template<typename T>
void sead::BoundBox2< T >::setUndef ( )
inline

◆ set() [1/2]

template<typename T>
void sead::BoundBox2< T >::set ( T x0,
T y0,
T x1,
T y1 )
inline

◆ set() [2/2]

template<typename T>
void sead::BoundBox2< T >::set ( const Vector2 & min,
const Vector2 & max )
inline

◆ setMin()

template<typename T>
void sead::BoundBox2< T >::setMin ( const Vector2 & min)
inline

◆ setMax()

template<typename T>
void sead::BoundBox2< T >::setMax ( const Vector2 & max)
inline

◆ setFromCenterAndXY() [1/2]

template<typename T>
void sead::BoundBox2< T >::setFromCenterAndXY ( T centerX,
T centerY,
T sizeX,
T sizeY )
inline

◆ setFromCornerAndXY() [1/2]

template<typename T>
void sead::BoundBox2< T >::setFromCornerAndXY ( T cornerX,
T cornerY,
T sizeX,
T sizeY )
inline

◆ setFromCenterAndXY() [2/2]

template<typename T>
void sead::BoundBox2< T >::setFromCenterAndXY ( const Vector2 & center,
T sizeX,
T sizeY )
inline

◆ setFromCornerAndXY() [2/2]

template<typename T>
void sead::BoundBox2< T >::setFromCornerAndXY ( const Vector2 & corner,
T sizeX,
T sizeY )
inline

◆ offset() [1/2]

template<typename T>
void sead::BoundBox2< T >::offset ( T dx,
T dy )
inline

◆ offset() [2/2]

template<typename T>
void sead::BoundBox2< T >::offset ( const Vector2 & dv)
inline

◆ scaleX()

template<typename T>
void sead::BoundBox2< T >::scaleX ( T sx)
inline

◆ scaleY()

template<typename T>
void sead::BoundBox2< T >::scaleY ( T sy)
inline

Member Data Documentation

◆ mMin

template<typename T>
Vector2 sead::BoundBox2< T >::mMin
private

◆ mMax

template<typename T>
Vector2 sead::BoundBox2< T >::mMax
private