Geometry::CenterRadius< d > Struct Template Reference

#include <Circles.h>

List of all members.

Public Member Functions

 CenterRadius (Point< d > c, double r2)
 CenterRadius ()
double dist2 (const CenterRadius &other)
bool approximatelyIntersects (const CenterRadius &other)
std::string toString () const

Public Attributes

Point< dcenter
double radius2

template<size_t d>
struct Geometry::CenterRadius< d >


Constructor & Destructor Documentation

template<size_t d>
Geometry::CenterRadius< d >::CenterRadius Point< d c,
double  r2
[inline]
 

template<size_t d>
Geometry::CenterRadius< d >::CenterRadius  )  [inline]
 


Member Function Documentation

template<size_t d>
bool Geometry::CenterRadius< d >::approximatelyIntersects const CenterRadius< d > &  other  )  [inline]
 

This is a fast computation of whether two center-radius balls intersect. We do not use exact arithmetic: the assumption is that the center calculation that led to the CR was itself inaccurate, so that would be pointless.

template<size_t d>
double Geometry::CenterRadius< d >::dist2 const CenterRadius< d > &  other  )  [inline]
 

template<size_t d>
std::string Geometry::CenterRadius< d >::toString  )  const [inline]
 


Member Data Documentation

template<size_t d>
Point<d> Geometry::CenterRadius< d >::center
 

template<size_t d>
double Geometry::CenterRadius< d >::radius2
 


The documentation for this struct was generated from the following file:
Generated on Thu Mar 27 19:04:16 2008 by  doxygen 1.4.6