ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <Union.hpp>
Public Member Functions | |
bool | contains (std::shared_ptr< Shapes::Shape > const &shape) const noexcept |
void | add (std::shared_ptr< Shapes::Shape > const &shape) |
void | remove (std::shared_ptr< Shapes::Shape > const &shape) |
void | calculate_dist (Utils::Vector3d const &pos, double &dist, Utils::Vector3d &vec) const override |
Calculate the minimum of all distances and the corresponding distance vector for a given position and any contained shape. | |
bool | is_inside (Utils::Vector3d const &pos) const override |
Public Member Functions inherited from Shapes::Shape | |
std::vector< int > | rasterize (Utils::Vector3i const &grid_size, double grid_spacing, double grid_offset) const |
Rasterize a shape on a regular grid. | |
virtual | ~Shape ()=default |
Definition at line 34 of file shapes/include/shapes/Union.hpp.
|
inline |
Definition at line 40 of file shapes/include/shapes/Union.hpp.
|
inlineoverridevirtual |
Calculate the minimum of all distances and the corresponding distance vector for a given position and any contained shape.
[in] | pos | Position from which to get the nearest distance. |
[out] | dist | Nearest distance to the shape. Negative if inside the shape, zero if in direct contact with the shape. |
[out] | vec | Vector to nearest point on the shape. |
Implements Shapes::Shape.
Definition at line 56 of file shapes/include/shapes/Union.hpp.
|
inlinenoexcept |
Definition at line 36 of file shapes/include/shapes/Union.hpp.
|
inlineoverridevirtual |
Reimplemented from Shapes::Shape.
Definition at line 78 of file shapes/include/shapes/Union.hpp.
|
inline |
Definition at line 44 of file shapes/include/shapes/Union.hpp.