WebCFace 2.9.0
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
AxisAngle Struct Reference

#include <webcface/transform.h>

Public Member Functions

 AxisAngle (const std::array< double, 3 > &axis, double angle) noexcept
 
 operator std::pair< std::array< double, 3 >, double > () const noexcept
 

Public Attributes

std::array< double, 3 > axis
 
double angle
 

Detailed Description

Since
ver2.7
  • ver2.5〜2.6まで Rotation::quaternionToAxisAngle()Rotation::rotAxisAngle() は std::pair を返していたが、 arm64,armv7でのABI互換性に問題があるためver2.7でstructに変更した
  • ver2.6以前でも2.7以降でも動作するコードを書くには、
    • 構造化束縛を使う: auto [axis, angle] = rotAxisAngle()
    • または、ADLでget()関数を使う: auto axis = get<0>(rotAxisAngle());, auto angle = get<1>(rotAxisAngle());

Constructor & Destructor Documentation

◆ AxisAngle()

AxisAngle ( const std::array< double, 3 > &  axis,
double  angle 
)
inlinenoexcept

Member Function Documentation

◆ operator std::pair< std::array< double, 3 >, double >()

operator std::pair< std::array< double, 3 >, double > ( ) const
inlinenoexcept

Member Data Documentation

◆ angle

double angle

◆ axis

std::array<double, 3> axis

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