]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/RigidBody.hpp
latest updates from JSBSim
[flightgear.git] / src / FDM / YASim / RigidBody.hpp
index 08e07ef88b2b41d7cbd7f0ad00519ace3f7554ef..6e4a4ad3027cf51573b44d8dfc64b70d307e6c85 100644 (file)
@@ -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