KisaragiLibrary
 
読み取り中…
検索中…
一致する文字列を見つけられません
Kisaragi_Lib::Transform2D::Rotation2D クラス

matrixのRotaを扱うラッパークラス. [詳解]

#include <Transform.hpp>

クラス

class  Radian
 

公開メンバ関数

 Rotation2D (Matrix2D *_p)
 
 operator double () const
 
double operator= (double _degree)
 
double operator+= (double _degree)
 
double operator-= (double _degree)
 

公開変数類

Radian radian { pMat }
 

非公開変数類

Matrix2DpMat
 

詳解

matrixのRotaを扱うラッパークラス.

構築子と解体子

◆ Rotation2D()

Kisaragi_Lib::Transform2D::Rotation2D::Rotation2D ( Matrix2D * _p)
inline
135:pMat(_p) {}
Matrix2D * pMat
Definition Transform.hpp:119

関数詳解

◆ operator double()

Kisaragi_Lib::Transform2D::Rotation2D::operator double ( ) const
inline
139 {
140 return Math::RadianToDegree(pMat->Rotation());
141 }
static double RadianToDegree(const double &_radian)
ラジアン値を角度に変換する.
Definition KisaragiMath.hpp:47

◆ operator=()

double Kisaragi_Lib::Transform2D::Rotation2D::operator= ( double _degree)
inline
144 {
145 *pMat *= pMat->CreateInverseRotaMatrix();
146
147 if (_degree > 360)
148 {
149 _degree = std::fmod(_degree, 360);
150 }
151
152 if (_degree < 0)
153 {
154 _degree = std::fmod(_degree, 360);
155 }
156
158
159 return *this;
160 }
static double DegreeToRadian(const double &_degree)
角度をラジアン値に変換する.
Definition KisaragiMath.hpp:57
Matrix2D CreateRotaMatrix()
Definition Matrix2D.hpp:226

◆ operator+=()

double Kisaragi_Lib::Transform2D::Rotation2D::operator+= ( double _degree)
inline
163 {
164 if (_degree > 360)
165 {
166 _degree = std::fmod(_degree, 360);
167 }
168
169 if (_degree < 0)
170 {
171 _degree = std::fmod(_degree, 360);
172 }
173
175
176 return *this;
177 }

◆ operator-=()

double Kisaragi_Lib::Transform2D::Rotation2D::operator-= ( double _degree)
inline
180 {
181 if (_degree > 360)
182 {
183 _degree = std::fmod(_degree, 360);
184 }
185
186 if (_degree < 0)
187 {
188 _degree = std::fmod(_degree, 360);
189 }
190
192
193 return *this;
194 }

メンバ詳解

◆ pMat

Matrix2D* Kisaragi_Lib::Transform2D::Rotation2D::pMat
private

◆ radian

Radian Kisaragi_Lib::Transform2D::Rotation2D::radian { pMat }
196{ pMat };

このクラス詳解は次のファイルから抽出されました: