[#1351] Include ymin in 3D figure bounding box calculation

This commit is contained in:
SiboVG 2022-06-08 11:53:09 +02:00
parent ca9241f562
commit 20ec790c56

View File

@ -517,7 +517,7 @@ public class RocketFigure3d extends JPanel implements GLEventListener {
// Add 10% for space around it.
final double dX = (b.span().x * 1.2 / 2.0)
/ Math.tan(Math.toRadians(fovX / 2.0));
final double dY = (b.span().y * 1.2 / 2.0)
final double dY = ((b.span().y - b.min.y) * 1.2 / 2.0)
/ Math.tan(Math.toRadians(fovY / 2.0));
// Move back the greater of the 2 distances