|
WebCFace 3.3.1
Web-based Communication Framework & Dashboard-like UI
|
#include "webcface-config.h"#include "webcface/common/array_like.h"#include <array>#include <optional>#include <cassert>Go to the source code of this file.
Classes | |
| class | Point |
| 3次元 or 2次元の座標を表すクラス。 More... | |
| struct | AxisAngle |
| class | Rotation |
| 3次元の回転を表すクラス More... | |
| class | Transform |
| 3次元の平行移動と回転 More... | |
Namespaces | |
| namespace | webcface |
Enumerations | |
| enum class | AxisSequence { ZXZ , XYX , YZY , ZYZ , XZX , YXY , XYZ , YZX , ZXY , XZY , ZYX , YXZ } |
| オイラー角の回転順序 More... | |
Functions | |
| template<std::size_t I> | |
| const auto & | get (const AxisAngle &aa) |
| Rotation | rotFromEuler (const std::array< double, 3 > &rot, AxisSequence axis=AxisSequence::ZYX) |
| 回転をオイラー角から初期化 | |
| template<typename R , typename traits::ArrayLikeTrait< R >::ArrayLike = traits::TraitOk, typename traits::ArraySizeTrait< R, 3 >::SizeMatchOrDynamic = traits::TraitOk> | |
| Rotation | rotFromEuler (const R &rot, AxisSequence axis=AxisSequence::ZYX) |
| 回転をオイラー角から初期化 | |
| Rotation | rotFromEuler (double angle1, double angle2, double angle3, AxisSequence axis=AxisSequence::ZYX) |
| 回転をオイラー角から初期化 | |
| Rotation | rotFromMatrix (const std::array< std::array< double, 3 >, 3 > &matrix) |
| 回転を回転行列から初期化 | |
| Rotation | rotFromQuat (const std::array< double, 4 > &quat) |
| 回転をクォータニオンから初期化 | |
| template<typename R , typename traits::ArrayLikeTrait< R >::ArrayLike = traits::TraitOk, typename traits::ArraySizeTrait< R, 4 >::SizeMatchOrDynamic = traits::TraitOk> | |
| Rotation | rotFromQuat (const R &quat) |
| 回転をクォータニオンから初期化 | |
| Rotation | rotFromQuat (double w, double x, double y, double z) |
| 回転をクォータニオンから初期化 | |
| Rotation | rotFromAxisAngle (const std::array< double, 3 > &axis, double angle) |
| 回転を回転軸と角度から初期化 | |
| template<typename R , typename traits::ArrayLikeTrait< R >::ArrayLike = traits::TraitOk, typename traits::ArraySizeTrait< R, 3 >::SizeMatchOrDynamic = traits::TraitOk> | |
| Rotation | rotFromAxisAngle (const R &axis, double angle) |
| 回転を回転軸と角度から初期化 | |
| Rotation | rot2D (double rot) |
| 2次元の回転を初期化 | |
| Rotation | rotX (double rot) |
| X軸周りの回転 | |
| Rotation | rotY (double rot) |
| Y軸周りの回転 | |
| Rotation | rotZ (double rot) |
| Z軸周りの回転 | |
| Transform | identity () |
| 移動なし、回転なしのTransform | |
| Transform | translation (const Point &pos) |
| 平行移動のみのTransform | |
| Transform | translation (double x, double y, double z) |
| 平行移動のみのTransform | |
| Transform | translation (double x, double y) |
| 2次元の平行移動のみのTransform | |