X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d-demos.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fexamples%2Flife%2FCell.java;h=fb78e4b2993c09286205a85ea6d228f5ec3eb487;hp=9b148667af7ef16813dfbbd7927107cf43d9b619;hb=fd099c489d7f4df2624c07d1d3ba24f658b147a7;hpb=90edd4ae5af8b1ccc81f82ffb3b749d5a8f6bee2 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/life/Cell.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/life/Cell.java index 9b14866..fb78e4b 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/life/Cell.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/life/Cell.java @@ -56,7 +56,7 @@ class Cell extends AbstractCompositeShape implements } private void createCellShape() { - final double halfSize = SIZE / 2; + final double halfSize = SIZE / 2f; // define 4 points corresponding to cell borders final Point3D p1 = new Point3D(-halfSize, 0, -halfSize);