X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FYASim%2FRigidBody.hpp;h=6e4a4ad3027cf51573b44d8dfc64b70d307e6c85;hb=d66903e9ad63b91182ccc25d9bb82f18f8dd98b6;hp=08e07ef88b2b41d7cbd7f0ad00519ace3f7554ef;hpb=5b84ae51a54afb63effb8841ed08643bb5701aa7;p=flightgear.git diff --git a/src/FDM/YASim/RigidBody.hpp b/src/FDM/YASim/RigidBody.hpp index 08e07ef88..6e4a4ad30 100644 --- a/src/FDM/YASim/RigidBody.hpp +++ b/src/FDM/YASim/RigidBody.hpp @@ -97,6 +97,9 @@ public: // Returns the instantaneous rate of change of the angular // velocity, as a vector in local coordinates. void getAngularAccel(float* accelOut); + + // Returns the intertia tensor in a float[9] allocated by caller. + void getInertiaMatrix(float* inertiaOut); private: struct Mass { float m; float p[3]; }; @@ -110,7 +113,7 @@ private: float _gyro[3]; // Inertia tensor, and its inverse. Computed from the above. - float _I[9]; + float _tI[9]; float _invI[9]; // Externally determined quantities