|
faunus
|
An ellipsoid defined by two (moving) particles. More...
#include <regions.h>


Public Member Functions | |
| MovingEllipsoid (const Space &spc, ParticleVector::size_type particle_index1, ParticleVector::size_type particle_index2, double parallel_radius, double perpendicular_radius, bool use_group_mass_center) | |
| MovingEllipsoid (const Space &spc, const json &j) | |
| bool | isInside (const Point &position) const override |
| void | to_json (json &j) const override |
An ellipsoid defined by two (moving) particles.
| Faunus::Region::MovingEllipsoid::MovingEllipsoid | ( | const Space & | spc, |
| ParticleVector::size_type | particle_index1, | ||
| ParticleVector::size_type | particle_index2, | ||
| double | parallel_radius, | ||
| double | perpendicular_radius, | ||
| bool | use_group_mass_center | ||
| ) |
| spc | Space to operate on |
| particle_index1 | Index of first particle defining ellipsoid direction |
| particle_index2 | Index of second particle defining ellipsoid direction |
| parallel_radius | Ellipsoidal radius along axis connecting reference atoms |
| perpendicular_radius | Ellipsoidal radius perpendicular to axis connecting reference atoms |
The reference atoms are used only to define the direction of the ellipsoid and they absolute separation is imimportant. The size of the ellipsoid is defined solely by the two radii, originating from the midpoint between the two reference particles.
1.8.13