#include <webcface/transform.h>
- 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());
◆ AxisAngle()
AxisAngle |
( |
const std::array< double, 3 > & |
axis, |
|
|
double |
angle |
|
) |
| |
|
inlinenoexcept |
◆ operator std::pair< std::array< double, 3 >, double >()
operator std::pair< std::array< double, 3 >, double > |
( |
| ) |
const |
|
inlinenoexcept |
◆ angle
◆ axis
std::array<double, 3> axis |
The documentation for this struct was generated from the following file: