new Boundary class. replace RectBoundBox. change int to double#53
new Boundary class. replace RectBoundBox. change int to double#53Windspar wants to merge 1 commit intoashish2199:masterfrom Windspar:boundary
Conversation
|
I understand about changing from int to double and that it will lead to better accuracy. What I didnt understand was why the current implementation was removed instead of modifying it. |
|
Boundary class has same naming convention as Rectangle2D . All methods that work with Rectangle2D works with Boundary. I could just have just modify RectBoundedBox. But there was nothing left the same. |
Change some int to double . For better entity movement.
Boundary class is pretty close to javafx design.
When there a map class. Boundary getCorners could just check map position.
Instead of every stationary entity.