Gnash  0.8.11dev
Classes | Namespaces | Enumerations | Functions
Range2d.h File Reference
#include <ostream>
#include <limits>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdint>

Go to the source code of this file.

Classes

struct  gnash::geometry::detail::Promote< U >
 
struct  gnash::geometry::detail::Promote< float >
 
struct  gnash::geometry::detail::Promote< int >
 
struct  gnash::geometry::detail::Promote< unsigned int >
 
class  gnash::geometry::Range2d< T >
 2d Range template class More...
 

Namespaces

 gnash
 Anonymous namespace for callbacks, local functions, event handlers etc.
 
 gnash::geometry
 
 gnash::geometry::detail
 

Enumerations

enum  gnash::geometry::RangeKind { gnash::geometry::finiteRange, gnash::geometry::nullRange, gnash::geometry::worldRange }
 Kinds of a range. More...
 

Functions

template<typename T >
std::ostream & gnash::geometry::operator<< (std::ostream &os, const Range2d< T > &rect)
 
template<typename T >
bool gnash::geometry::operator== (const Range2d< T > &r1, const Range2d< T > &r2)
 
template<typename T >
bool gnash::geometry::operator!= (const Range2d< T > &r1, const Range2d< T > &r2)
 
template<typename T >
bool gnash::geometry::Intersect (const Range2d< T > &r1, const Range2d< T > &r2)
 Return true of the two ranges intersect (boundaries included) More...
 
template<typename T >
Range2d< T > gnash::geometry::Union (const Range2d< T > &r1, const Range2d< T > &r2)
 Return a rectangle being the union of the two rectangles. More...
 
template<typename T >
Range2d< T > gnash::geometry::Intersection (const Range2d< T > &r1, const Range2d< T > &r2)
 Return a rectangle being the intersetion of the two rectangles. More...