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

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

#include <Transform.hpp>

クラス

class  ScaleX
 
class  ScaleY
 

公開メンバ関数

 Scale2D (Matrix2D *_p)
 
 operator Point2D< double > () const
 
Point2D< double > operator+= (Point2D< double > _p)
 
Point2D< double > operator-= (Point2D< double > _p)
 
Point2D< double > operator= (Point2D< double > _p)
 

公開変数類

ScaleX x { pMat }
 
ScaleY y { pMat }
 

非公開変数類

Matrix2DpMat
 

詳解

matrixの拡大率を扱うラッパークラス.

構築子と解体子

◆ Scale2D()

Kisaragi_Lib::Transform2D::Scale2D::Scale2D ( Matrix2D * _p)
inline
236:pMat(_p) {}
Matrix2D * pMat
Definition Transform.hpp:207

関数詳解

◆ operator Point2D< double >()

Kisaragi_Lib::Transform2D::Scale2D::operator Point2D< double > ( ) const
inline
239 {
240 return pMat->Scale();
241 }
Point2D< double > Scale()
Definition Matrix2D.hpp:103

◆ operator+=()

Point2D< double > Kisaragi_Lib::Transform2D::Scale2D::operator+= ( Point2D< double > _p)
inline
244 {
245 *pMat *= Matrix2D::CreateScaleMatrix(_p.x, _p.y);
246 return *this; //operator呼び出し
247 }
Matrix2D CreateScaleMatrix()
Definition Matrix2D.hpp:274

◆ operator-=()

Point2D< double > Kisaragi_Lib::Transform2D::Scale2D::operator-= ( Point2D< double > _p)
inline
250 {
251 *pMat *= Matrix2D::CreateScaleMatrix(-_p.x, -_p.y);
252 return *this; //operator呼び出し
253 }

◆ operator=()

Point2D< double > Kisaragi_Lib::Transform2D::Scale2D::operator= ( Point2D< double > _p)
inline
256 {
257 //移動打消し.
259 //移動
260 *pMat *= Matrix2D::CreateScaleMatrix(_p.x, _p.y);
261 return *this; //operator呼び出し
262 }
Matrix2D CreateInverseScaleMatrix()
Definition Matrix2D.hpp:324

メンバ詳解

◆ pMat

Matrix2D* Kisaragi_Lib::Transform2D::Scale2D::pMat
private

◆ x

ScaleX Kisaragi_Lib::Transform2D::Scale2D::x { pMat }
264{ pMat };

◆ y

ScaleY Kisaragi_Lib::Transform2D::Scale2D::y { pMat }
265{ pMat };

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