Classes | Enumerations | Functions

gnash::geometry Namespace Reference

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.
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).
template<typename T >
Range2d< T > Union (const Range2d< T > &r1, const Range2d< T > &r2)
 Return a rectangle being the union of the two rectangles.
template<typename T >
Range2d< T > Intersection (const Range2d< T > &r1, const Range2d< T > &r2)
 Return a rectangle being the intersetion of the two rectangles.
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, boost::int32_t x, boost::int32_t y, const SWFMatrix &wm)

Enumeration Type Documentation

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

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().

Referenced by main().

template<typename T >
Range2d<T> gnash::geometry::Intersection ( const Range2d< T > &  r1,
const Range2d< T > &  r2 
) [inline]
template<typename T >
bool gnash::geometry::operator!= ( const Range2d< T > &  r1,
const Range2d< T > &  r2 
) [inline]
template<class T >
std::ostream& gnash::geometry::operator<< ( std::ostream &  os,
const SnappingRanges2d< T > &  r 
)
template<typename T >
std::ostream& gnash::geometry::operator<< ( std::ostream &  os,
const Range2d< T > &  rect 
) [inline]
std::ostream& gnash::geometry::operator<< ( std::ostream &  os,
const Point2d &  p 
) [inline]

Output operator.

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

template<typename T >
bool gnash::geometry::operator== ( const Range2d< T > &  r1,
const Range2d< T > &  r2 
) [inline]
bool gnash::geometry::pointTest ( const std::vector< Path > &  paths,
const std::vector< LineStyle > &  lineStyles,
boost::int32_t  x,
boost::int32_t  y,
const SWFMatrix &  wm 
)
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().

Referenced by main().