Change the implementation of Transition getComponentVolume to include the volumes...
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Tue, 24 Apr 2012 18:24:22 +0000 (18:24 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Tue, 24 Apr 2012 18:24:22 +0000 (18:24 +0000)
commitd981fef00a82a0fa26849c375c91e820179e8ce9
tree3d6ef368c96ae7665895f05cb15487ab71a184e9
parent00ec43765482617ecd6af9d311c27fa4708132b0
Change the implementation of Transition getComponentVolume to include the volumes of the shoulders as well as the main body.  This means that Transition no longer needs to override getComponentMass since the default implementation of density * volume now works correctly.

Added helper function to RocketComponent to compute the volume of a ring component by computing the "mass" with density of 1.0.

git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@599 180e2498-e6e9-4542-8430-84ac67f01cd8
core/src/net/sf/openrocket/rocketcomponent/RocketComponent.java
core/src/net/sf/openrocket/rocketcomponent/Transition.java
core/test/net/sf/openrocket/rocketcomponent/SymmetricComponentVolumeTest.java