90 return roll == rhs.roll &&
96 return !(*
this == rhs);
101 explicit constexpr operator bool() const noexcept
109 return !
operator bool();
131 roll * (direction.roll ? 1 : -1),
132 pitch * (direction.pitch ? 1 : -1),
133 yaw * (direction.yaw ? 1 : -1),
149 void show() const noexcept
151 Serial.print(
F(
"r: ")), Serial.print(
roll), Serial.print(
'\t');
152 Serial.print(
F(
"p: ")), Serial.print(
pitch), Serial.print(
'\t');
153 Serial.print(
F(
"y: ")), Serial.print(
yaw), Serial.print(
'\t');
#define F(x)
Definition Show.hpp:17
double Normalized(double value, double min, double max)
値を正規化する
Definition Math.hpp:154
オイラー角の回転方向
Definition Euler.hpp:22
bool yaw
Definition Euler.hpp:25
bool pitch
Definition Euler.hpp:24
bool roll
Definition Euler.hpp:23
オイラー角
Definition Euler.hpp:31
ValueType yaw
ヨー角
Definition Euler.hpp:43
constexpr Euler operator+(const Euler &rhs) const noexcept
Definition Euler.hpp:70
Euler & operator=(const Euler &)=default
デフォルトコピー代入演算子
ValueType roll
ロール角
Definition Euler.hpp:37
Euler(const Euler &)=default
デフォルトコピーコンストラクタ
Euler & operator/=(const Euler &rhs) noexcept
Definition Euler.hpp:82
Euler & operator/=(ValueType rhs) noexcept
Definition Euler.hpp:86
constexpr Euler operator*(const Euler &rhs) const noexcept
Definition Euler.hpp:72
Euler & operator*=(ValueType rhs) noexcept
Definition Euler.hpp:85
Euler & operator+=(const Euler &rhs) noexcept
Definition Euler.hpp:79
constexpr Euler operator/(const Euler &rhs) const noexcept
Definition Euler.hpp:73
Euler & operator-=(ValueType rhs) noexcept
Definition Euler.hpp:84
constexpr Euler operator/(ValueType rhs) const noexcept
Definition Euler.hpp:77
constexpr Euler operator*(ValueType rhs) const noexcept
Definition Euler.hpp:76
Euler & operator*=(const Euler &rhs) noexcept
Definition Euler.hpp:81
constexpr Euler directionRevision(const EulerDirection &direction) const noexcept
回転方向を修正したオイラー角を取得する
Definition Euler.hpp:128
void clear() noexcept
値クリア
Definition Euler.hpp:142
Euler & operator-=(const Euler &rhs) noexcept
Definition Euler.hpp:80
constexpr Euler operator-(ValueType rhs) const noexcept
Definition Euler.hpp:75
Quaternion toQuaternion() const noexcept
クォータニオンに変換する
Definition Euler.hpp:12
constexpr bool isZero() const noexcept
要素がゼロであるか返す
Definition Euler.hpp:107
Euler & operator+=(ValueType rhs) noexcept
Definition Euler.hpp:83
constexpr Euler() noexcept
デフォルトコンストラクタ
Definition Euler.hpp:46
constexpr Euler operator+(ValueType rhs) const noexcept
Definition Euler.hpp:74
constexpr bool operator==(const Euler &rhs) const noexcept
Definition Euler.hpp:88
constexpr Euler(ValueType roll, ValueType pitch, ValueType yaw) noexcept
コンストラクタ
Definition Euler.hpp:57
Euler normalized(ValueType min, ValueType max) const
正規化されたオイラー角を取得する
Definition Euler.hpp:116
constexpr Euler operator-(const Euler &rhs) const noexcept
Definition Euler.hpp:71
UDON_ENUMERABLE(roll, pitch, yaw)
constexpr bool operator!=(const Euler &rhs) const noexcept
Definition Euler.hpp:94
double ValueType
要素の型
Definition Euler.hpp:34
ValueType pitch
ピッチ角
Definition Euler.hpp:40
クオータニオン
Definition Quaternion.hpp:30