|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
#include <Line.hpp>
Public Member Functions | |
Constructors and destructor | |
| constexpr | Line () |
| Default constructor for owning Lines. Default initialize the. | |
| constexpr | Line (const point_t ¢er, const vector_t &direction) |
| Constructor to initialize the center and radius. | |
| template<ValidPointType OtherPointType, ValidVectorType OtherVectorType> | |
| constexpr | Line (const OtherPointType ¢er, const OtherVectorType &direction) |
| Constructor to initialize the center and radius. | |
| constexpr | ~Line ()=default |
| Destructor. | |
| constexpr | Line (const Line< value_type, point_t > &other) |
| Deep copy constructor. | |
| template<typename OtherLineType> | |
| constexpr | Line (const OtherLineType &other) |
| Deep copy constructor. | |
| constexpr | Line (Line< value_type, point_t > &&other) |
| Deep move constructor. | |
| template<typename OtherLineType> | |
| constexpr | Line (OtherLineType &&other) |
| Deep move constructor. | |
Operators | |
| constexpr Line< value_type, point_t > & | operator= (const Line< value_type, point_t > &other) |
| Copy assignment operator. | |
| template<typename OtherLineType> | |
| constexpr Line< value_type, point_t > & | operator= (const OtherLineType &other) |
| Copy assignment operator. | |
| constexpr Line< value_type, point_t > & | operator= (Line< value_type, point_t > &&other) |
| Move assignment operator. | |
| template<typename OtherLineType> | |
| constexpr Line< value_type, point_t > & | operator= (OtherLineType &&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 vector_t & | direction () const |
| Accessor for the direction. | |
| constexpr vector_t & | direction () |
| Accessor for the direction. | |
Type aliases | |
| using | value_type = Scalar |
| Our scalar type. | |
| using | point_t = PointType |
| Our point type. | |
| using | vector_t = PointType |
| Our vector type. | |
| static constexpr bool | is_finite = false |
Setters | |
| template<ValidPointType OtherPointType> | |
| constexpr void | set_center (const OtherPointType ¢er) |
| Set the center. | |
| constexpr void | set_center (const Scalar &x, const Scalar &y, const Scalar &z) |
| Set the center. | |
| template<ValidVectorType OtherVectorType> | |
| constexpr void | set_direction (const OtherVectorType &direction) |
| Set the direction. | |
| constexpr void | set_direction (const Scalar &x, const Scalar &y, const Scalar &z) |
| Set the direction. | |