#include <Circles.h>
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< d > | center |
| double | radius2 |
|
||||||||||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
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. |
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||
|
|
|
|||||
|
|
1.4.6