diff --git a/include/JSystem/TPosition3.h b/include/JSystem/TPosition3.h index 92de4b58117..5b416eb9fa1 100644 --- a/include/JSystem/TPosition3.h +++ b/include/JSystem/TPosition3.h @@ -53,7 +53,7 @@ struct SMatrix33C { template struct TMatrix34 : public T { - void identity() { MTXIdentity(data); } + void identity() { MTXIdentity(this->data); } }; template @@ -62,15 +62,15 @@ struct TRotation3 : public T {}; template struct TRotation3 > : public SMatrix33C { inline void getEulerXYZ(TVec3* param_1) const { - if (at(2, 0) - TUtil::one() >= -TUtil::epsilon()) { - param_1->set(TUtil::atan2(-at(0, 1), at(1, 1)), -TUtil::halfPI(), 0.0); + if (this->at(2, 0) - TUtil::one() >= -TUtil::epsilon()) { + param_1->set(TUtil::atan2(-this->at(0, 1), this->at(1, 1)), -TUtil::halfPI(), 0.0); } else { - if (at(2, 0) + TUtil::one() <= TUtil::epsilon()) { - param_1->set(TUtil::atan2(at(0, 1), at(1, 1)), TUtil::halfPI(), 0.0); + if (this->at(2, 0) + TUtil::one() <= TUtil::epsilon()) { + param_1->set(TUtil::atan2(this->at(0, 1), this->at(1, 1)), TUtil::halfPI(), 0.0); } else { - param_1->x = TUtil::atan2(at(2, 1), at(2, 2)); - param_1->z = TUtil::atan2(at(1, 0), at(0, 0)); - param_1->y = TUtil::asin(-at(2, 0)); + param_1->x = TUtil::atan2(this->at(2, 1), this->at(2, 2)); + param_1->z = TUtil::atan2(this->at(1, 0), this->at(0, 0)); + param_1->y = TUtil::asin(-this->at(2, 0)); } } } diff --git a/src/d/d_debug_pad.h b/include/d/d_debug_pad.h similarity index 100% rename from src/d/d_debug_pad.h rename to include/d/d_debug_pad.h