#include <IMP/algebra/SphereD.h>
|
| SphereD (const VectorD< D > ¢er, double radius) |
|
const VectorD< D > & | get_center () const |
|
bool | get_contains (const SphereD< D > &o) const |
| Return true if this sphere contains the other one.
|
|
bool | get_contains (const VectorD< D > &p) const |
| Return true if the point is in or on the surface of the sphere.
|
|
unsigned int | get_dimension () const |
|
double | get_radius () const |
|
void | show (std::ostream &out=std::cout) const |
|
|
These functions write geometry to text files, one line per geometric primitive. Each line has the form “x y z” for points or “x y z r” for spheres. We can easily add general dimension support if requested.. Lines beginning with "#" are treated as comments.
|
void | write_spheres (const Sphere3Ds &vs, base::TextOutput out) |
| Write a set of 3d spheres to a file. More...
|
|
Sphere3Ds | read_spheres (base::TextInput input) |
| Read a set of 3d spheres from a file. More...
|
|
template<int D>
class IMP::algebra::SphereD< D >
Represent a sphere in D-dimensions.
- Note
- This class is a geometric primitive. Also, this class is not not initialized by its default constructor.
Definition at line 25 of file SphereD.h.
template<int D>
double get_distance |
( |
const SphereD< D > & |
a, |
|
|
const SphereD< D > & |
b |
|
) |
| |
|
related |
If they intersect, the distances are not meaningful.
Definition at line 119 of file SphereD.h.
template<int D>
double get_power_distance |
( |
const SphereD< D > & |
a, |
|
|
const SphereD< D > & |
b |
|
) |
| |
|
related |
The power distance is the square of the distance between the centers minus the sum of the square of the radii.
Definition at line 130 of file SphereD.h.
Generates a random vector in a circle with uniform density with respect to the area of the circle
- Parameters
-
The function is currently pretty slow, especially in non-optimized builds. Complain if this bugs you. We might be able to do better, at least in 3D.
Creates at least the requested number of points.
- Note
- This predicates will produce guaranteed correct results if the CGAL library is available (the results will be unreliable if it is not).
Definition at line 120 of file vector_generators.h.
The documentation for this class was generated from the following files: