Billy Olsen 25475a92fb Rework the FlightConfiguration.calculateBounds() for instances
Use the information provided in the getActiveInstances() in order to
calculate the length of the rocket. This change takes each component
instance and uses the component bounds and the instance's transform
in order to determine the instance's actual bounds. The length is
then calculated as the difference between the min and max X values,
using the BoundingBox.

Note, this particular change special-cases a few of the components
in order to get the right length. It is preferred to revisit each
special case in subsequent patches in order to keep this patch set
minimal for the time being.

The length calculations are already stressed during unit tests, but
the results are a bit more accurate and thus the unit tests are
updated to reflect the new values.

Fixes #452

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-04-12 18:18:17 -07:00
..
2016-09-27 08:10:59 -05:00
2012-01-08 02:23:06 +00:00
2016-09-27 08:10:59 -05:00
2015-03-26 06:49:54 -05:00
2013-04-16 22:55:01 +03:00
2013-04-16 22:55:01 +03:00

OpenRocket - an Open Source model rocket simulator
--------------------------------------------------

Copyright (C) 2007-2013  Sampo Niskanen and others


For license information see the file LICENSE.TXT.

For more information see http://openrocket.sourceforge.net/



To start the software run the class 

    net.sf.openrocket.startup.Startup

or from the JAR file run

    $ java -jar OpenRocket-<VERSION>.jar



Contributions have been made by:
--------------------------------

Sampo Niskanen, main developer
Doug Pedrick, support for RockSim designs, printing
Kevin Ruland, Android version
Bill Kuker, 3D visualization
Richard Graham, geodetic computations
Jason Blood, freeform fin set import
Boris du Reau, internationalization

Translations contributed by:
Tripoli France
Tripoli Spain
Stefan Lobas / ERIG
Mauro Biasutti
Sky Dart Team
Vladimir Beran
Polish Rocketry Society / Łukasz & Alex Kazanski