Gnash  0.8.11dev
Namespaces | Classes | Enumerations | Functions
gnash::geometry Namespace Reference

Namespaces

 detail
 

Classes

class  Point2d
 2D Point class More...
 
class  Range2d
 2d Range template class More...
 
class  SnappingRanges2d
 

Enumerations

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

Functions

std::ostream & operator<< (std::ostream &os, const Point2d &p)
 Output operator. More...
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const Range2d< T > &rect)
 
template<typename T >
bool operator== (const Range2d< T > &r1, const Range2d< T > &r2)
 
template<typename T >
bool operator!= (const Range2d< T > &r1, const Range2d< T > &r2)
 
template<typename T >
bool Intersect (const Range2d< T > &r1, const Range2d< T > &r2)
 Return true of the two ranges intersect (boundaries included) More...
 
template<typename T >
Range2d< T > 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 > Intersection (const Range2d< T > &r1, const Range2d< T > &r2)
 Return a rectangle being the intersetion of the two rectangles. More...
 
template<class T >
std::ostream & operator<< (std::ostream &os, const SnappingRanges2d< T > &r)
 
bool pointTest (const std::vector< Path > &paths, const std::vector< LineStyle > &lineStyles, std::int32_t x, std::int32_t y, const SWFMatrix &wm)
 

Enumeration Type Documentation

§ RangeKind

Kinds of a range.

Enumerator
finiteRange 

Valid range, using finite values.

nullRange 

A NULL range is a range enclosing NO points.

worldRange 

A WORLD range2d is a range including all points on the plane.

Note that scaling, shifting and unioning will NOT change a WORLD range.

Function Documentation

§ Intersect()

template<typename T >
bool gnash::geometry::Intersect ( const Range2d< T > &  r1,
const Range2d< T > &  r2 
)
inline

Return true of the two ranges intersect (boundaries included)

References gnash::geometry::Range2d< T >::intersects().

§ Intersection()

template<typename T >
Range2d<T> gnash::geometry::Intersection ( const Range2d< T > &  r1,
const Range2d< T > &  r2 
)
inline

§ operator!=()

template<typename T >
bool gnash::geometry::operator!= ( const Range2d< T > &  r1,
const Range2d< T > &  r2 
)
inline

§ operator<<() [1/3]

std::ostream& gnash::geometry::operator<< ( std::ostream &  os,
const Point2d p 
)
inline

Output operator.

References gnash::geometry::Point2d::x, and gnash::geometry::Point2d::y.

Referenced by gnash::operator==().

§ operator<<() [2/3]

template<class T >
std::ostream& gnash::geometry::operator<< ( std::ostream &  os,
const SnappingRanges2d< T > &  r 
)

§ operator<<() [3/3]

template<typename T >
std::ostream& gnash::geometry::operator<< ( std::ostream &  os,
const Range2d< T > &  rect 
)
inline

§ operator==()

template<typename T >
bool gnash::geometry::operator== ( const Range2d< T > &  r1,
const Range2d< T > &  r2 
)
inline

§ pointTest()

bool gnash::geometry::pointTest ( const std::vector< Path > &  paths,
const std::vector< LineStyle > &  lineStyles,
std::int32_t  x,
std::int32_t  y,
const SWFMatrix wm 
)

§ Union()

template<typename T >
Range2d<T> gnash::geometry::Union ( const Range2d< T > &  r1,
const Range2d< T > &  r2 
)
inline

Return a rectangle being the union of the two rectangles.

References gnash::geometry::Range2d< T >::expandTo().