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

matrix3x3座標系のラッパークラス [詳解]

#include <Transform.hpp>

クラス

class  Position2D
 matrixのポジションを扱うラッパークラス [詳解]
 
class  Rotation2D
 matrixのRotaを扱うラッパークラス. [詳解]
 
class  Scale2D
 matrixの拡大率を扱うラッパークラス. [詳解]
 

公開メンバ関数

 Transform2D ()
 
 Transform2D (bool _isWorld)
 
void SetPearent (Transform2D *_pearent)
 
 operator Matrix2D ()
 
const Matrix2Doperator*= (Matrix2D _mat)
 
const Matrix2Doperator-> ()
 

公開変数類

Position2D position { &mat }
 
Rotation2D rotation { &mat }
 
Scale2D scale { &mat }
 
bool isWorld = false
 

限定公開変数類

Matrix2D mat { IDENTITY_MATRIX }
 
Transform2Dpearent
 

静的限定公開変数類

static Transform2D world = Transform2D{true}
 

詳解

matrix3x3座標系のラッパークラス

構築子と解体子

◆ Transform2D() [1/2]

Kisaragi_Lib::Transform2D::Transform2D ( )
inline
282 {
283 pearent = &world;
284 }
static Transform2D world
Definition Transform.hpp:272
Transform2D * pearent
Definition Transform.hpp:269

参照元 SetPearent().

◆ Transform2D() [2/2]

Kisaragi_Lib::Transform2D::Transform2D ( bool _isWorld)
inline
286 : isWorld(_isWorld)
287 {
288
289 }
bool isWorld
Definition Transform.hpp:279

関数詳解

◆ SetPearent()

void Kisaragi_Lib::Transform2D::SetPearent ( Transform2D * _pearent)
inline
292 {
293 pearent = _pearent;
294 }

◆ operator Matrix2D()

Kisaragi_Lib::Transform2D::operator Matrix2D ( )
inline
298 {
299 if (isWorld)
300 {
301 return mat;
302 }
303
304 return ((Matrix2D)*pearent * mat);
305 }
Matrix2D mat
Definition Transform.hpp:20

◆ operator*=()

const Matrix2D & Kisaragi_Lib::Transform2D::operator*= ( Matrix2D _mat)
inline
308 {
309 mat *= _mat;
310 return mat;
311 }

◆ operator->()

const Matrix2D & Kisaragi_Lib::Transform2D::operator-> ( )
inline
315 {
316 return mat;
317 }

メンバ詳解

◆ mat

Matrix2D Kisaragi_Lib::Transform2D::mat { IDENTITY_MATRIX }
protected
@ IDENTITY_MATRIX
Definition Matrix2D.hpp:19

参照元 operator Matrix2D(), operator*=(), operator->().

◆ pearent

Transform2D* Kisaragi_Lib::Transform2D::pearent
protected

◆ world

Transform2D Kisaragi_Lib::Transform2D::world = Transform2D{true}
staticprotected

参照元 Transform2D().

◆ position

Position2D Kisaragi_Lib::Transform2D::position { &mat }

◆ rotation

Rotation2D Kisaragi_Lib::Transform2D::rotation { &mat }
276{ &mat };

◆ scale

Scale2D Kisaragi_Lib::Transform2D::scale { &mat }
277{ &mat };

◆ isWorld

bool Kisaragi_Lib::Transform2D::isWorld = false

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