65 for (
int i = 0; i < 3; i++)
67 for (
int j = 0; j < 3; j++)
79 for (
int i = 0; i < 3; i++)
121 for (
int i = 0; i < 3; i++)
123 for (
int j = 0; j < 3; j++)
125 for (
int k = 0; k < 3; k++)
140 for (
int i = 0; i < 3; i++)
142 for (
int j = 0; j < 3; j++)
144 for (
int k = 0; k < 3; k++)
160 for (
int i = 0; i < 3; ++i)
162 for (
int j = 0; j < 3; ++j)
164 result.
matrix[i][j] *= scalar;
174 for (
int i = 0; i < 3; ++i)
176 for (
int j = 0; j < 3; ++j)
185#pragma region 移動行列作成関数
212 double cos = std::cos(_angle);
213 double sin = std::sin(_angle);
262 assert(_scale.
x > 0);
263 assert(_scale.
y > 0);
277 assert(
Scale().x > 0);
278 assert(
Scale().y > 0);
290#pragma region 逆行列作成関数
汎用計算クラス
Definition KisaragiMath.hpp:39
static T Pow(const T &_num, const unsigned int &_cnt)
べき乗,累乗
Definition KisaragiMath.hpp:126
Matrix2D CreateInverseScaleMatrix()
Definition Matrix2D.hpp:324
Matrix2D operator*(Matrix2D _mat)
Definition Matrix2D.hpp:136
Matrix2D CreateInverseMoveMatrix()
Definition Matrix2D.hpp:291
static Matrix2D CreateInverseMoveMatrix(Point2D< double > _pos)
Definition Matrix2D.hpp:299
Point2D< double > Position()
Definition Matrix2D.hpp:87
void AxisAlignedTranslation(T _x, T _y)
X軸、Y軸に平行移動する 回転の影響を受けない.
Definition Matrix2D.hpp:368
static Matrix2D CreateMoveMatrix(double _x, double _y)
Definition Matrix2D.hpp:187
Matrix2D(Matrix2DType _type)
Definition Matrix2D.hpp:45
static Matrix2D CreateRotaMatrix(double _angle)
Definition Matrix2D.hpp:208
Matrix2D CreateRotaMatrix()
Definition Matrix2D.hpp:226
static Matrix2D CreateScaleMatrix(Scale2D< double > _scale)
Definition Matrix2D.hpp:259
void ObjectInit()
Definition Matrix2D.hpp:74
Matrix2D operator*(double scalar)
Definition Matrix2D.hpp:155
static Matrix2D CreateScaleMatrix(double _x, double _y)
Definition Matrix2D.hpp:244
array< array< double, 3 >, 3 > matrix
Definition Matrix2D.hpp:26
Matrix2D CreateInverseTransformationMatrix()
Definition Matrix2D.hpp:342
static Matrix2D CreateInverseScaleMatrix(Scale2D< T > _scale)
Definition Matrix2D.hpp:333
static Matrix2D CreateInverseRotaMatrix(T _rotation)
Definition Matrix2D.hpp:316
Matrix2D CreateScaleMatrix()
Definition Matrix2D.hpp:274
double Rotation()
回転をラジアン値で返す
Definition Matrix2D.hpp:96
Matrix2D()
Definition Matrix2D.hpp:40
Matrix2D CreateMoveMatrix()
Definition Matrix2D.hpp:197
const Matrix2D & operator*=(double scalar)
Definition Matrix2D.hpp:171
Matrix2D CreateInverseRotaMatrix()
Definition Matrix2D.hpp:307
void ZeroClear()
Definition Matrix2D.hpp:62
void SetAxisAlignedTranslation(T _x, T _y)
X軸、Y軸に平行な座標をセットする 回転、拡大の影響を受けない
Definition Matrix2D.hpp:382
Point2D< double > Scale()
Definition Matrix2D.hpp:103
void operator*=(Matrix2D _mat)
Definition Matrix2D.hpp:117
Definition Accessor.hpp:110
Matrix2DType
Definition Matrix2D.hpp:17
@ IDENTITY_MATRIX
Definition Matrix2D.hpp:19
@ ZERO_CLEAR
Definition Matrix2D.hpp:18
Point2D< T > Scale2D
サイズを表すプリミティブ型 実体はPoint2D<T>と変わりありません
Definition Primitive.hpp:193
点を表すプリミティブ型
Definition Primitive.hpp:29
T y
Definition Primitive.hpp:30
T x
Definition Primitive.hpp:30