diff --git a/com/danitheskunk/skunkworks/Recti.java b/com/danitheskunk/skunkworks/Recti.java index 26cfd72..c82ff93 100644 --- a/com/danitheskunk/skunkworks/Recti.java +++ b/com/danitheskunk/skunkworks/Recti.java @@ -36,4 +36,20 @@ public final class Recti { public int getHeight() { return size.getY(); } + + public Vec2i getTopLeft() { + return pos; + } + + public Vec2i getTopRight() { + return new Vec2i(pos.getX() + size.getX(), pos.getY()); + } + + public Vec2i getBottomLeft() { + return new Vec2i(pos.getX(), pos.getY() + size.getY()); + } + + public Vec2i getBottomRight() { + return Vec2i.add(pos, size); + } }