Vigilante Game Framework  1.0.0.8
A 2D/3D C++ Game Framework using SFML.
Public Member Functions | Public Attributes | List of all members
VRangeBounds< T > Class Template Reference

Class that holds four of the same object for min/max range. Best use this when storing objects with at least two properties (i.e. 2D vectors) More...

#include <VRange.h>

Public Member Functions

 VRangeBounds (T val)
 
 VRangeBounds (T AA, T AB, T BA, T BB)
 
 VRangeBounds (T min, T max)
 
 VRangeBounds (const VRange< T > &min, const VRange< T > &max)
 
bool operator== (VRangeBounds< T > range)
 
bool operator!= (VRangeBounds< T > range)
 

Public Attributes

VRange< T > A
 Smallest range bounderies.
 
VRange< T > B
 Largest range bounderies.
 

Detailed Description

template<typename T>
class VRangeBounds< T >

Class that holds four of the same object for min/max range. Best use this when storing objects with at least two properties (i.e. 2D vectors)

Constructor & Destructor Documentation

◆ VRangeBounds() [1/4]

template<typename T>
VRangeBounds< T >::VRangeBounds ( val)
inline
Parameters
valThe value to set both range bounds to. (Seems almost unnecessary for a range but it saves time setting one value to both manually).

◆ VRangeBounds() [2/4]

template<typename T>
VRangeBounds< T >::VRangeBounds ( AA,
AB,
BA,
BB 
)
inline
Parameters
AAThe lowest value in the range bound A.
ABThe highest value in the range bounds A.
BAThe lowest value in the range bound B.
BBThe highest value in the range bounds B.

◆ VRangeBounds() [3/4]

template<typename T>
VRangeBounds< T >::VRangeBounds ( min,
max 
)
inline
Parameters
minThe lowest value in the range bounds.
maxThe highest value in the range bounds.

◆ VRangeBounds() [4/4]

template<typename T>
VRangeBounds< T >::VRangeBounds ( const VRange< T > &  min,
const VRange< T > &  max 
)
inline
Parameters
minThe lowest value in the range bounds as a VRange.
maxThe highest value in the range bounds as a VRange.

Member Function Documentation

◆ operator!=()

template<typename T>
bool VRangeBounds< T >::operator!= ( VRangeBounds< T >  range)
inline
Parameters
rangeThe other VRangeBound.
Returns
Returns true if a range bound doesn't match.

◆ operator==()

template<typename T>
bool VRangeBounds< T >::operator== ( VRangeBounds< T >  range)
inline
Parameters
rangeThe other VRangeBound.
Returns
Returns true if all range bounds match.

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