A hookean spring between two points with a rest length and spring constant.
|
| | HookeanSpring () |
| | Default constructor for owning HookeanSprings. Default initialize the line segment and set the spring constant and rest length to -1.
|
| | HookeanSpring ()=delete |
| | No default constructor for viewing HookeanSpringss.
|
| | HookeanSpring (const line_segment_t &line_segment, const value_type &rest_length, const value_type &spring_constant) |
| | Constructor to initialize the line segment, rest length, and spring constant.
|
| template<mundy::ValidLineSegmentType OtherLineSegmentType> |
| | HookeanSpring (const OtherLineSegmentType &line_segment, const value_type &rest_length, const value_type &spring_constant) |
| | Constructor to initialize the start and end points.
|
| | ~HookeanSpring ()=default |
| | Destructor.
|
| | HookeanSpring (const HookeanSpring< value_type, line_segment_t, ownership_t > &other) |
| | Deep copy constructor.
|
| template<typename OtherHookeanSpringType> |
| | HookeanSpring (const OtherHookeanSpringType &other) |
| | Deep copy constructor.
|
| | HookeanSpring (HookeanSpring< value_type, line_segment_t, ownership_t > &&other) |
| | Deep move constructor.
|
| template<typename OtherHookeanSpringType> |
| | HookeanSpring (OtherHookeanSpringType &&other) |
| | Deep move constructor.
|
| HookeanSpring< value_type, line_segment_t, ownership_t > & | operator= (const HookeanSpring< value_type, line_segment_t, ownership_t > &other) |
| | Copy assignment operator.
|
| template<typename OtherHookeanSpringType> |
| HookeanSpring< value_type, line_segment_t, ownership_t > & | operator= (const OtherHookeanSpringType &other) |
| | Copy assignment operator.
|
| HookeanSpring< value_type, line_segment_t, ownership_t > & | operator= (HookeanSpring< value_type, line_segment_t, ownership_t > &&other) |
| | Move assignment operator.
|
| template<typename OtherHookeanSpringType> |
| HookeanSpring< value_type, line_segment_t, ownership_t > & | operator= (OtherHookeanSpringType &&other) |
| | Move assignment operator.
|
| const line_segment_t & | line_segment () const |
| | Accessor for the line segment.
|
| line_segment_t & | line_segment () |
| | Accessor for the line segment.
|
| const value_type & | rest_length () const |
| | Accessor for the rest length.
|
| value_type & | rest_length () |
| | Accessor for the rest length.
|
| const value_type & | spring_constant () const |
| | Accessor for the spring constant.
|
| value_type & | spring_constant () |
| | Accessor for the spring constant.
|