CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Range.hpp File Reference
#include "CeresEngine/DataTypes.hpp"
#include "CeresEngine/Macros.hpp"
#include "CeresEngine/Foundation/Hash.hpp"
#include <algorithm>
#include <cstdint>

Go to the source code of this file.

Classes

struct  Math::TRange< OffsetT, LengthT >
 

Namespaces

namespace  Math
 

Typedefs

using Math::Range = TRange< double >
 
using Math::Rangef = TRange< float >
 
using Math::Rangei = TRange< Int64 >
 

Functions

template<typename OffsetT , typename LengthT >
constexpr TRange< OffsetT, LengthT > Math::operator& (TRange< OffsetT, LengthT > a, TRange< OffsetT, LengthT > b) noexcept
 Computes the intersection of both ranges a and b.
 
template<typename OffsetT , typename LengthT >
constexpr bool Math::operator== (TRange< OffsetT, LengthT > a, TRange< OffsetT, LengthT > b) noexcept
 Compares two ranges for equality.
 
template<typename OffsetT , typename LengthT >
constexpr bool Math::operator!= (TRange< OffsetT, LengthT > a, TRange< OffsetT, LengthT > b) noexcept
 Compares two ranges for inequality.
 
template<typename OffsetT , typename LengthT >
constexpr bool Math::operator< (decltype(TRange< OffsetT, LengthT >::offset) offset, TRange< OffsetT, LengthT > range) noexcept
 Checks if a offset is before the range.
 
template<typename OffsetT , typename LengthT >
constexpr bool Math::operator<= (decltype(TRange< OffsetT, LengthT >::offset) offset, TRange< OffsetT, LengthT > range) noexcept
 Checks if a offset is before the range or is within the range.
 
template<typename OffsetT , typename LengthT >
constexpr bool Math::operator> (decltype(TRange< OffsetT, LengthT >::offset) offset, TRange< OffsetT, LengthT > range) noexcept
 Checks if a offset is after the range.
 
template<typename OffsetT , typename LengthT >
constexpr bool Math::operator>= (decltype(TRange< OffsetT, LengthT >::offset) offset, TRange< OffsetT, LengthT > range) noexcept
 Checks if a offset is after the range or is within the range.