@Test public void testValid() { Box2D invalid=new Box2D(); assertFalse(invalid.valid()); Box2D valid=new Box2D(new Vector2(0,0), new Vector2(1,1)); assertTrue(valid.valid()); }
public Boolean valid() { return max.getX() >= min.getX() && max.getY() >= min.getY(); }
Box2D implements IsSerializable { public Boolean valid() { return max.getX() >= min.getX() && max.getY() >= min.getY(); } }
Box2D implements IsSerializable { public Boolean valid() { return max.getX() >= min.getX() && max.getY() >= min.getY(); } Box2D();  Box2D(Vector2 min, Vector2 max); }
Box2D implements IsSerializable { public Boolean valid() { return max.getX() >= min.getX() && max.getY() >= min.getY(); } Box2D();  Box2D(Vector2 min, Vector2 max); Box2D clone(); Boolean valid(); Vector2 getMin(); void setMin(Vector2 min); Vector2 getMax(); void setMax(Vector2 max); void expandBy(Vector2 v); void expandBy(Box2D bb); void expandBy(double d); boolean intersects(Box2D bb); boolean contains(Vector2 position); Vector2 getCenter(); double getWidth(); double getHeight(); String toString(); static Box2D createBox(Vector2 v0, Vector2 v1); String toJSON(); }
Box2D implements IsSerializable { public Boolean valid() { return max.getX() >= min.getX() && max.getY() >= min.getY(); } Box2D();  Box2D(Vector2 min, Vector2 max); Box2D clone(); Boolean valid(); Vector2 getMin(); void setMin(Vector2 min); Vector2 getMax(); void setMax(Vector2 max); void expandBy(Vector2 v); void expandBy(Box2D bb); void expandBy(double d); boolean intersects(Box2D bb); boolean contains(Vector2 position); Vector2 getCenter(); double getWidth(); double getHeight(); String toString(); static Box2D createBox(Vector2 v0, Vector2 v1); String toJSON();  }