Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor::IndexedRangeT< T > Class Template Reference

A range inside a sequence. More...

#include <RangeSequence.hpp>

Inheritance diagram for castor::IndexedRangeT< T >:
Inheritance graph
[legend]
Collaboration diagram for castor::IndexedRangeT< T >:
Collaboration graph
[legend]

Public Member Functions

 IndexedRangeT (uint32_t index, T const &min, T const &max)
 
uint32_t getIndex () const
 
- Public Member Functions inherited from castor::Range< T >
 Range (T const &min, T const &max) noexcept
 Constructor.
 
T const & clamp (T const &value) const noexcept
 Puts a value in the range.
 
bool has (T const &value) const noexcept
 
float percent (T const &value) const noexcept
 Gives the percentage matching the given value.
 
float invPercent (T const &value) const noexcept
 Gives the percentage matching the given value.
 
value (float const &percent) const noexcept
 Gives the value matching the given percentage.
 
invValue (float const &percent) const noexcept
 Gives the value matching the given percentage.
 
T const & getMin () const noexcept
 
T const & getMax () const noexcept
 

Detailed Description

template<typename T>
class castor::IndexedRangeT< T >

A range inside a sequence.

Constructor & Destructor Documentation

◆ IndexedRangeT()

template<typename T >
castor::IndexedRangeT< T >::IndexedRangeT ( uint32_t index,
T const & min,
T const & max )
inline

Member Function Documentation

◆ getIndex()

template<typename T >
uint32_t castor::IndexedRangeT< T >::getIndex ( ) const
inline

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