#include <Matrix44.h>
Public Member Functions | |
Matrix44 () | |
コンストラクタ | |
Matrix44 (float i00, float i01, float i02, float i03, float i10, float i11, float i12, float i13, float i20, float i21, float i22, float i23, float i30, float i31, float i32, float i33) | |
コンストラクタ | |
Matrix44 (const float *const source) | |
コンストラクタ | |
void | set (float s00, float s01, float s02, float s03, float s10, float s11, float s12, float s13, float s20, float s21, float s22, float s23, float s30, float s31, float s32, float s33) |
値の設定 | |
void | set (const float *const source) |
値の設定 | |
void | setZero () |
ゼロ行列設定 | |
void | setUnit () |
単位行列設定 | |
void | set (const Matrix33 &source) |
3×3行列の設定 | |
void | set (const Matrix34 &source) |
3×4行列の設定 | |
void | setScale (float scaleX, float scaleY, float scaleZ) |
スケールの設定 | |
void | setScale (const Vector3 &scale) |
スケールの設定 | |
void | addScale (float scaleX, float scaleY, float scaleZ) |
スケールの追加 | |
void | addScale (const Vector3 &scale) |
スケールの追加 | |
void | setRotationX (float radian) |
X軸回転の設定. | |
void | addRotationX (float radian) |
X軸回転の追加. | |
void | setRotationY (float radian) |
Y軸回転の設定. | |
void | addRotationY (float radian) |
Y軸回転の追加. | |
void | setRotationZ (float radian) |
Z軸回転の設定. | |
void | addRotationZ (float radian) |
Z軸回転の追加. | |
void | setRotationAxis (const Vector3 &axis, float radian) |
軸指定回転の設定 | |
void | addRotationAxis (const Vector3 &axis, float radian) |
軸指定回転の追加 | |
void | getRotationAxis (Vector3 *axis, float *radian) const |
軸指定回転の取得 | |
void | setRotationQuaternion (const Quaternion &quaternion) |
四元数回転の設定 | |
void | addRotationQuaternion (const Quaternion &quaternion) |
四元数回転の追加 | |
Quaternion | getRotationQuaternion () const |
四元数回転の取得 | |
void | setRotationXYZ (const Vector3 &radian) |
XYZ軸回転の設定. | |
void | addRotationXYZ (const Vector3 &radian) |
XYZ軸回転の追加. | |
bool | getRotationXYZ (Vector3 *radian) const |
XYZ軸回転の取得. | |
void | setRotationXZY (const Vector3 &radian) |
XZY軸回転の設定. | |
void | addRotationXZY (const Vector3 &radian) |
XZY軸回転の追加. | |
bool | getRotationXZY (Vector3 *radian) const |
XZY軸回転の取得. | |
void | setRotationYXZ (const Vector3 &radian) |
YXZ軸回転の設定. | |
void | addRotationYXZ (const Vector3 &radian) |
YXZ軸回転の追加. | |
bool | getRotationYXZ (Vector3 *radian) const |
YXZ軸回転の取得. | |
void | setRotationYZX (const Vector3 &radian) |
YZX軸回転の設定. | |
void | addRotationYZX (const Vector3 &radian) |
YZX軸回転の追加. | |
bool | getRotationYZX (Vector3 *radian) const |
YZX軸回転の取得. | |
void | setRotationZXY (const Vector3 &radian) |
ZXY軸回転の設定. | |
void | addRotationZXY (const Vector3 &radian) |
ZXY軸回転の追加. | |
bool | getRotationZXY (Vector3 *radian) const |
ZXY軸回転の取得. | |
void | setRotationZYX (const Vector3 &radian) |
ZYX軸回転の設定. | |
void | addRotationZYX (const Vector3 &radian) |
ZYX軸回転の追加. | |
bool | getRotationZYX (Vector3 *radian) const |
ZYX軸回転の取得. | |
void | setTranslation (float translationX, float translationY, float translationZ) |
移動の設定 | |
void | setTranslation (const Vector3 &translation) |
移動の設定 | |
void | addTranslation (float translationX, float translationY, float translationZ) |
移動の追加 | |
void | addTranslation (const Vector3 &translation) |
移動の追加 | |
Vector3 | getTranslation () const |
移動の取得 | |
void | setTransformationXYZ (const Vector3 &radian, const Vector3 &translation) |
XYZ回転の変換設定. | |
void | addTransformationXYZ (const Vector3 &radian, const Vector3 &translation) |
XYZ回転の変換追加. | |
void | setTransformationXYZ (const Vector3 &scale, const Vector3 &radian, const Vector3 &translation) |
XYZ回転の変換設定. | |
void | addTransformationXYZ (const Vector3 &scale, const Vector3 &radian, const Vector3 &translation) |
XYZ回転の変換追加. | |
void | setTransformationQuaternion (const Quaternion &quaternion, const Vector3 &translation) |
四元数回転の変換設定 | |
void | addTransformationQuaternion (const Quaternion &quaternion, const Vector3 &translation) |
四元数回転の変換追加 | |
void | setTransformationQuaternion (const Vector3 &scale, const Quaternion &quaternion, const Vector3 &translation) |
四元数回転の変換設定 | |
void | addTransformationQuaternion (const Vector3 &scale, const Quaternion &quaternion, const Vector3 &translation) |
四元数回転の変換追加 | |
Matrix44 | operator * (const Matrix44 &mtx) const |
行列乗算 | |
Matrix44 & | operator *= (Matrix44 mtx) |
代入行列乗算 | |
Vector3 | operator * (const Vector3 &vector) const |
ベクトル乗算 | |
Vector3 | multiply33 (const Vector3 &vector) const |
3x3のベクトル乗算 | |
Matrix44 | operator * (float value) const |
スカラー乗算 | |
Matrix44 & | operator *= (float value) |
スカラー乗算 | |
void | transpose () |
転置 | |
float | determinant () const |
行列式 | |
float | invert () |
逆行列 | |
float | invert (Matrix44 *invertMatrix) const |
逆行列 | |
void | invertTransformation () |
変換行列の逆行列 | |
void | invertTransformation (Matrix44 *invertMatrix) const |
変換行列の逆行列 | |
bool | operator== (const Matrix44 &target) const |
行列が同じかどうか | |
bool | epsilonEquals (const Matrix44 &target, float epsilon) const |
行列が同じかどうか | |
bool | operator!= (const Matrix44 &target) const |
行列が同じでないかどうか | |
bool | notEpsilonEquals (const Matrix44 &target, float epsilon) const |
行列が同じでないかどうか | |
String | toString () const |
文字列化 | |
Static Public Attributes | |
const Matrix44 | zero |
ゼロ行列 | |
const Matrix44 | unit |
単位行列 |
右手座標系を使用します。 このクラスは継承しないで下さい。
Definition at line 43 of file Matrix44.h.
|
コンストラクタ このコンストラクタは初期値の設定を行わないため値は不定です。 Definition at line 110 of file Matrix44.h. Referenced by operator *(). |
|
コンストラクタ
Definition at line 131 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |
|
コンストラクタ
Definition at line 146 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |
|
軸指定回転の追加
Definition at line 380 of file Matrix44.h. References setRotationAxis(). |
|
四元数回転の追加
Definition at line 474 of file Matrix44.h. References setRotationQuaternion(). Referenced by Lamp::Camera::setTransformation(). |
|
X軸回転の追加.
Definition at line 295 of file Matrix44.h. References setRotationX(). Referenced by setRotationYXZ(), setRotationYZX(), setRotationZXY(), and setRotationZYX(). |
|
XYZ軸回転の追加.
Definition at line 550 of file Matrix44.h. References setRotationXYZ(). |
|
XZY軸回転の追加.
Definition at line 597 of file Matrix44.h. References setRotationXZY(). |
|
Y軸回転の追加.
Definition at line 319 of file Matrix44.h. References setRotationY(). Referenced by setRotationXZY(), setRotationZXY(), and setRotationZYX(). |
|
YXZ軸回転の追加.
Definition at line 644 of file Matrix44.h. References setRotationYXZ(). |
|
YZX軸回転の追加.
Definition at line 691 of file Matrix44.h. References setRotationYZX(). |
|
Z軸回転の追加.
Definition at line 343 of file Matrix44.h. References setRotationZ(). Referenced by setRotationXZY(), setRotationYXZ(), and setRotationYZX(). |
|
ZXY軸回転の追加.
Definition at line 738 of file Matrix44.h. References setRotationZXY(). |
|
ZYX軸回転の追加.
Definition at line 785 of file Matrix44.h. References setRotationZYX(). Referenced by Lamp::Camera::setTransformation(). |
|
スケールの追加
Definition at line 269 of file Matrix44.h. References setScale(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
スケールの追加
Definition at line 259 of file Matrix44.h. References setScale(). Referenced by Lamp::SpriteRenderer::applyRendererState(). |
|
四元数回転の変換追加 スケール、四元数回転、移動の順に変換を追加します
Definition at line 1087 of file Matrix44.h. References setTransformationQuaternion(). |
|
四元数回転の変換追加 四元数回転、移動の順に変換を追加します
Definition at line 1027 of file Matrix44.h. References setTransformationQuaternion(). |
|
XYZ回転の変換追加. スケール、XYZ回転、移動の順に変換を追加します
Definition at line 969 of file Matrix44.h. References setTransformationXYZ(). |
|
XYZ回転の変換追加. XYZ回転、移動の順に変換を追加します
Definition at line 916 of file Matrix44.h. References setTransformationXYZ(). |
|
移動の追加
Definition at line 858 of file Matrix44.h. References setTranslation(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
移動の追加
Definition at line 847 of file Matrix44.h. References setTranslation(). |
|
行列式
Definition at line 1262 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |
|
行列が同じかどうか
Definition at line 1533 of file Matrix44.h. References Assert, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |
|
軸指定回転の取得
Definition at line 391 of file Matrix44.h. References m00, m01, m02, m10, m11, m12, m20, m21, m22, Lamp::Vector3::normalize(), Lamp::Vector3::set(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
四元数回転の取得
Definition at line 484 of file Matrix44.h. References Lamp::Quaternion::array, m, m00, m01, m02, m10, m11, m12, m20, m21, m22, Lamp::Quaternion::w, Lamp::Quaternion::x, Lamp::Quaternion::y, and Lamp::Quaternion::z. |
|
XYZ軸回転の取得.
Definition at line 561 of file Matrix44.h. References m00, m01, m10, m11, m20, m21, m22, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by Lamp::Camera::clippingSetup(). |
|
XZY軸回転の取得.
Definition at line 608 of file Matrix44.h. References m00, m02, m10, m11, m12, m20, m22, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
YXZ軸回転の取得.
Definition at line 655 of file Matrix44.h. References m00, m01, m10, m11, m20, m21, m22, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
YZX軸回転の取得.
Definition at line 702 of file Matrix44.h. References m00, m01, m02, m11, m12, m21, m22, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
ZXY軸回転の取得.
Definition at line 749 of file Matrix44.h. References m00, m02, m10, m11, m12, m20, m22, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
ZYX軸回転の取得.
Definition at line 796 of file Matrix44.h. References m00, m01, m02, m10, m12, m20, m22, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
移動の取得
Definition at line 868 of file Matrix44.h. Referenced by Lamp::Camera::clippingSetup(), Lamp::Plane::scaledTransform(), and Lamp::Plane::transform(). |
|
逆行列
Definition at line 1376 of file Matrix44.h. References Assert, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, and NULL. |
|
逆行列
Definition at line 1290 of file Matrix44.h. References Assert, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. Referenced by Lamp::Camera::clippingSetup(). |
|
変換行列の逆行列 変換行列には回転と移動しか含まれていないと仮定する
Definition at line 1483 of file Matrix44.h. References Assert, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
変換行列の逆行列 変換行列には回転と移動しか含まれていないと仮定する Definition at line 1463 of file Matrix44.h. References Assert, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
3x3のベクトル乗算
Definition at line 1197 of file Matrix44.h. References m00, m01, m02, m10, m11, m12, m20, m21, m22, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by Lamp::Capsule::scaledTransform(), Lamp::Segment::transform(), Lamp::Ray::transform(), Lamp::Plane::transform(), Lamp::Line::transform(), Lamp::Cone::transform(), and Lamp::Capsule::transform(). |
|
行列が同じでないかどうか
Definition at line 1577 of file Matrix44.h. References Assert, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |
|
スカラー乗算
Definition at line 1209 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, and Matrix44(). |
|
ベクトル乗算
Definition at line 1185 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
行列乗算 左側の行列から順に計算が適用されます。
Definition at line 1104 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, and Matrix44(). |
|
スカラー乗算
Definition at line 1222 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |
|
代入行列乗算 左側の行列から順に計算が適用されます。
Definition at line 1131 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |
|
行列が同じでないかどうか
Definition at line 1559 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |
|
行列が同じかどうか
Definition at line 1515 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |
|
3×4行列の設定
Definition at line 59 of file Matrix44.cpp. References Lamp::Matrix34::m00, Lamp::Matrix34::m01, Lamp::Matrix34::m02, Lamp::Matrix34::m03, Lamp::Matrix34::m10, Lamp::Matrix34::m11, Lamp::Matrix34::m12, Lamp::Matrix34::m13, Lamp::Matrix34::m20, Lamp::Matrix34::m21, Lamp::Matrix34::m22, Lamp::Matrix34::m23, and set(). |
|
3×3行列の設定
Definition at line 51 of file Matrix44.cpp. References Lamp::Matrix33::m00, Lamp::Matrix33::m01, Lamp::Matrix33::m02, Lamp::Matrix33::m10, Lamp::Matrix33::m11, Lamp::Matrix33::m12, Lamp::Matrix33::m20, Lamp::Matrix33::m21, Lamp::Matrix33::m22, and set(). |
|
値の設定
Definition at line 190 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |
|
値の設定
Definition at line 175 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. Referenced by Lamp::SpriteRenderer::applyRendererState(), Lamp::Camera::buildPerspectiveMatrix(), set(), Lamp::Camera::setLookAt(), setRotationAxis(), setRotationX(), setRotationY(), setRotationZ(), setScale(), setTranslation(), setUnit(), and setZero(). |
|
軸指定回転の設定
Definition at line 355 of file Matrix44.h. References Assert, Lamp::Vector3::isUnit(), set(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by addRotationAxis(). |
|
四元数回転の設定
Definition at line 435 of file Matrix44.h. References Assert, Lamp::Quaternion::isUnit(), m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, Lamp::Quaternion::w, Lamp::Quaternion::x, Lamp::Quaternion::y, and Lamp::Quaternion::z. Referenced by addRotationQuaternion(). |
|
X軸回転の設定.
Definition at line 282 of file Matrix44.h. References set(). Referenced by addRotationX(), and setRotationXZY(). |
|
XYZ軸回転の設定.
Definition at line 518 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by addRotationXYZ(). |
|
XZY軸回転の設定.
Definition at line 587 of file Matrix44.h. References addRotationY(), addRotationZ(), setRotationX(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by addRotationXZY(). |
|
Y軸回転の設定.
Definition at line 306 of file Matrix44.h. References set(). Referenced by addRotationY(), setRotationYXZ(), and setRotationYZX(). |
|
YXZ軸回転の設定.
Definition at line 634 of file Matrix44.h. References addRotationX(), addRotationZ(), setRotationY(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by addRotationYXZ(). |
|
YZX軸回転の設定.
Definition at line 681 of file Matrix44.h. References addRotationX(), addRotationZ(), setRotationY(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by addRotationYZX(). |
|
Z軸回転の設定.
Definition at line 330 of file Matrix44.h. References set(). Referenced by addRotationZ(), setRotationZXY(), and setRotationZYX(). |
|
ZXY軸回転の設定.
Definition at line 728 of file Matrix44.h. References addRotationX(), addRotationY(), setRotationZ(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by addRotationZXY(). |
|
ZYX軸回転の設定.
Definition at line 775 of file Matrix44.h. References addRotationX(), addRotationY(), setRotationZ(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by addRotationZYX(). |
|
スケールの設定
Definition at line 249 of file Matrix44.h. References setScale(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
スケールの設定
Definition at line 238 of file Matrix44.h. References set(). Referenced by addScale(), and setScale(). |
|
四元数回転の変換設定 スケール、四元数回転、移動の順に変換する行列を作成します
Definition at line 1043 of file Matrix44.h. References Assert, Lamp::Quaternion::isUnit(), m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, Lamp::Quaternion::w, Lamp::Vector3::x, Lamp::Quaternion::x, Lamp::Vector3::y, Lamp::Quaternion::y, Lamp::Vector3::z, and Lamp::Quaternion::z. |
|
四元数回転の変換設定 四元数回転、移動の順に変換する行列を作成します
Definition at line 984 of file Matrix44.h. References Assert, Lamp::Quaternion::isUnit(), m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, Lamp::Quaternion::w, Lamp::Vector3::x, Lamp::Quaternion::x, Lamp::Vector3::y, Lamp::Quaternion::y, Lamp::Vector3::z, and Lamp::Quaternion::z. Referenced by addTransformationQuaternion(). |
|
XYZ回転の変換設定. スケール、XYZ回転、移動の順に変換する行列を作成します
Definition at line 932 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
XYZ回転の変換設定. XYZ回転、移動の順に変換する行列を作成します
Definition at line 880 of file Matrix44.h. References m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by addTransformationXYZ(). |
|
移動の設定
Definition at line 837 of file Matrix44.h. References setTranslation(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
移動の設定
Definition at line 825 of file Matrix44.h. References set(). Referenced by addTranslation(), Lamp::SpriteRenderer::applyRendererState(), Lamp::Camera::setTransformation(), and setTranslation(). |
|
文字列化
Definition at line 1605 of file Matrix44.h. References Lamp::String::format(), m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, and m33. |