Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::Line< Scalar, PointType > Class Template Reference

#include <Line.hpp>

Public Member Functions

Constructors and destructor
constexpr Line ()
 Default constructor for owning Lines. Default initialize the.
constexpr Line (const point_t &center, const vector_t &direction)
 Constructor to initialize the center and radius.
template<ValidPointType OtherPointType, ValidVectorType OtherVectorType>
constexpr Line (const OtherPointType &center, 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_tcenter () const
 Accessor for the center.
constexpr point_tcenter ()
 Accessor for the center.
constexpr const vector_tdirection () const
 Accessor for the direction.
constexpr vector_tdirection ()
 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 &center)
 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.