Monado OpenXR Runtime
xrt::tracking::hand::mercury::lm::Vec3< Scalar > Struct Template Reference
Collaboration diagram for xrt::tracking::hand::mercury::lm::Vec3< Scalar >:

Public Member Functions

constexpr Vec3 ()
 Default constructor - DOES NOT INITIALIZE VALUES. More...
 
constexpr Vec3 (Vec3 const &other) noexcept(std::is_nothrow_copy_constructible_v< Scalar >)=default
 Copy constructor. More...
 
 Vec3 (Vec3 &&) noexcept(std::is_nothrow_move_constructible_v< Scalar >)=default
 Move constructor. More...
 
Vec3operator= (Vec3 const &)=default
 Copy assignment. More...
 
Vec3operator= (Vec3 &&) noexcept=default
 Move assignment. More...
 
template<typename Other >
constexpr Vec3 (Other x, Other y, Other z) noexcept
 
template<typename Other >
 Vec3 (Vec3< Other > const &other)
 
Scalar norm_sqrd () const
 
Scalar norm () const
 
Vec3 normalized () const
 

Static Public Member Functions

static Vec3 Zero ()
 

Data Fields

Scalar x = {}
 
Scalar y = {}
 
Scalar z = {}
 

Constructor & Destructor Documentation

◆ Vec3() [1/3]

template<typename Scalar >
constexpr xrt::tracking::hand::mercury::lm::Vec3< Scalar >::Vec3 ( )
inlineconstexpr

Default constructor - DOES NOT INITIALIZE VALUES.

◆ Vec3() [2/3]

template<typename Scalar >
constexpr xrt::tracking::hand::mercury::lm::Vec3< Scalar >::Vec3 ( Vec3< Scalar > const &  other) const
constexprdefaultnoexcept

Copy constructor.

◆ Vec3() [3/3]

template<typename Scalar >
xrt::tracking::hand::mercury::lm::Vec3< Scalar >::Vec3 ( Vec3< Scalar > &&  ) const
defaultnoexcept

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

template<typename Scalar >
Vec3 & xrt::tracking::hand::mercury::lm::Vec3< Scalar >::operator= ( Vec3< Scalar > &&  )
defaultnoexcept

Move assignment.

◆ operator=() [2/2]

template<typename Scalar >
Vec3 & xrt::tracking::hand::mercury::lm::Vec3< Scalar >::operator= ( Vec3< Scalar > const &  )
default

Copy assignment.


The documentation for this struct was generated from the following file: