Gorgon Game Engine
Range< T_ > Class Template Reference

This class represents a range of values. More...

Public Member Functions

 Range ()=default
 
 Range (T_ start, T_ end)
 
T_ Difference () const
 Returns the difference between start and end. More...
 
void Normalize ()
 Normalizes the range ensuring Start is less than or equal to the end. More...
 

Public Attributes

T_ End
 
T_ Start
 

Detailed Description

template<class T_>
class Gorgon::Range< T_ >

This class represents a range of values.

Generally, start is assumed to be included while end is excluded.

Constructor & Destructor Documentation

◆ Range() [1/2]

Range ( )
default

◆ Range() [2/2]

Range ( T_  start,
T_  end 
)

Member Function Documentation

◆ Difference()

T_ Difference ( ) const

Returns the difference between start and end.

References Range< T_ >::End, and Range< T_ >::Start.

◆ Normalize()

void Normalize ( )

Normalizes the range ensuring Start is less than or equal to the end.

References Range< T_ >::End, and Range< T_ >::Start.

Member Data Documentation

◆ End

T_ End

◆ Start

T_ Start

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