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

Public Member Functions

constexpr Vec2 () noexcept
 Default constructor - DOES NOT INITIALIZE VALUES. More...
 
constexpr Vec2 (Vec2 const &) noexcept(std::is_nothrow_copy_constructible_v< Scalar >)=default
 Copy constructor. More...
 
constexpr Vec2 (Vec2 &&) noexcept(std::is_nothrow_move_constructible_v< Scalar >)=default
 Move constructor. More...
 
Vec2operator= (Vec2 const &)=default
 Copy assignment. More...
 
Vec2operator= (Vec2 &&) noexcept=default
 Move assignment. More...
 
template<typename Other >
 Vec2 (Other x, Other y) noexcept(std::is_nothrow_constructible_v< Scalar, Other >)
 So that we can copy a regular Vec2 into the real part of a Jet Vec2. More...
 
template<typename Other >
 Vec2 (Vec2< Other > const &other) noexcept(std::is_nothrow_constructible_v< Scalar, Other >)
 

Static Public Member Functions

static constexpr Vec2 Zero ()
 

Data Fields

Scalar x = {}
 
Scalar y = {}
 

Constructor & Destructor Documentation

◆ Vec2() [1/4]

template<typename Scalar >
constexpr xrt::tracking::hand::mercury::lm::Vec2< Scalar >::Vec2 ( )
inlineconstexprnoexcept

Default constructor - DOES NOT INITIALIZE VALUES.

◆ Vec2() [2/4]

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

Copy constructor.

◆ Vec2() [3/4]

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

Move constructor.

◆ Vec2() [4/4]

template<typename Scalar >
template<typename Other >
xrt::tracking::hand::mercury::lm::Vec2< Scalar >::Vec2 ( Other  x,
Other  y 
)
inlinenoexcept

So that we can copy a regular Vec2 into the real part of a Jet Vec2.

Member Function Documentation

◆ operator=() [1/2]

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

Move assignment.

◆ operator=() [2/2]

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

Copy assignment.


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