|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
#include <Sphere.hpp>
Public Member Functions | |
Constructors and destructor | |
| constexpr | Sphere () |
| Default constructor for owning Spheres. Default initializes the center and sets the radius to an invalid value of -1. | |
| constexpr | Sphere (const point_t ¢er, const value_type &radius) |
| Constructor to initialize the center and radius. | |
| template<ValidPointType OtherPointType> | |
| constexpr | Sphere (const OtherPointType ¢er, const value_type &radius) |
| Constructor to initialize the center and radius. | |
| constexpr | ~Sphere ()=default |
| Destructor. | |
| constexpr | Sphere (const Sphere< value_type, point_t > &other) |
| Deep copy constructor. | |
| template<typename OtherSphereType> | |
| constexpr | Sphere (const OtherSphereType &other) |
| Deep copy constructor with different sphere type. | |
| constexpr | Sphere (Sphere< value_type, point_t > &&other) |
| Deep move constructor. | |
| template<typename OtherSphereType> | |
| constexpr | Sphere (OtherSphereType &&other) |
| Deep move constructor. | |
Operators | |
| constexpr Sphere< value_type, point_t > & | operator= (const Sphere< value_type, point_t > &other) |
| Copy assignment operator. | |
| template<typename OtherSphereType> | |
| constexpr Sphere< value_type, point_t > & | operator= (const OtherSphereType &other) |
| Copy assignment operator. | |
| constexpr Sphere< value_type, point_t > & | operator= (Sphere< value_type, point_t > &&other) |
| Move assignment operator. | |
| template<typename OtherSphereType> | |
| constexpr Sphere< value_type, point_t > & | operator= (OtherSphereType &&other) |
| Move assignment operator. | |
Accessors | |
| constexpr const point_t & | center () const |
| Accessor for the center. | |
| constexpr point_t & | center () |
| Accessor for the center. | |
| constexpr const value_type & | radius () const |
| Accessor for the radius. | |
| constexpr value_type & | radius () |
| Accessor for the radius. | |
Type aliases | |
| using | value_type = Scalar |
| Our scalar type. | |
| using | point_t = PointType |
| Our point type. | |
| static constexpr bool | is_finite = true |
Setters | |
| template<ValidPointType OtherPointType> | |
| constexpr void | set_center (const OtherPointType ¢er) |
| Set the center. | |
| constexpr void | set_center (const value_type &x, const value_type &y, const value_type &z) |
| Set the center. | |
| constexpr void | set_radius (const value_type &radius) |
| Set the radius. | |