faunus
Public Member Functions | List of all members
Faunus::Geometry::Hypersphere2d Class Reference
Inheritance diagram for Faunus::Geometry::Hypersphere2d:
Inheritance graph
[legend]
Collaboration diagram for Faunus::Geometry::Hypersphere2d:
Collaboration graph
[legend]

Public Member Functions

Point vdist (const Point &a, const Point &b) const override
 Minimum distance vector b->a.
 
bool collision (const Point &a) const override
 Overlap with boundaries.
 
void randompos (Point &m, Random &rand) const override
 Generate random position.
 
 Hypersphere2d (double radius=0.0)
 
std::unique_ptr< GeometryImplementationclone () const override
 A unique pointer to a copy of self.
 
- Public Member Functions inherited from Faunus::Geometry::Sphere
Point getLength () const override
 Side lengths.
 
double getVolume (int dim=3) const override
 Get volume.
 
Point setVolume (double volume, VolumeMethod method=VolumeMethod::ISOTROPIC) override
 Set volume.
 
void boundary (Point &a) const override
 Apply boundary conditions.
 
void from_json (const json &j) override
 
void to_json (json &j) const override
 
 Sphere (double radius=0.0)
 
double getRadius () const
 
- Public Member Functions inherited from Faunus::Geometry::GeometryBase
BoundaryFunction getBoundaryFunc () const
 Lambda for applying boundary conditions on a point.
 
DistanceFunction getDistanceFunc () const
 Lambda for calculating the (minimum) distance vector between two positions.
 

Additional Inherited Members

- Static Public Member Functions inherited from Faunus::Geometry::Sphere
static double sqdist (const Point &a, const Point &b)
 
- Public Attributes inherited from Faunus::Geometry::GeometryImplementation
BoundaryCondition boundary_conditions
 
- Protected Member Functions inherited from Faunus::Geometry::GeometryBase
template<typename T = double>
int anint (T x) const
 Round to int.
 
- Protected Attributes inherited from Faunus::Geometry::Sphere
double radius
 

The documentation for this class was generated from the following files: