[#1351] Include ymin in 3D figure bounding box calculation
This commit is contained in:
parent
ca9241f562
commit
20ec790c56
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user