WireframeCuboid extends WireframeShape { @Override public ReadonlyVector3 getOriginReadonly() { normalize(); return getOrigin().set( midpoint(lowerCorner.getX(), upperCorner.getX()), midpoint(lowerCorner.getY(), upperCorner.getY()), midpoint(lowerCorner.getZ(), upperCorner.getZ())); } WireframeCuboid(Vector3 lowerCorner, Vector3 upperCorner);  WireframeCuboid(double x0, double y0, double z0, double x1, double y1, double z1); Vector3 getLowerCorner(); WireframeCuboid setLowerCorner(Vector3 lowerCorner); Vector3 getUpperCorner(); WireframeCuboid setUpperCorner(Vector3 upperCorner); void normalize(); @Override ReadonlyVector3 getOriginReadonly();  }
@Test public void testGetOrigin() { assertEquals("(2.5,3.5,4.5)", new WireframeCuboid(1.0,2.0,3.0, 4.0,5.0,6.0).getOriginReadonly().toString()); }