From 412a80b5c2b8c8704a03cb374da21eadee8af531 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 31 Mar 2013 18:22:55 +0000 Subject: cCuboid: Added the IsCompletelyInside() function git-svn-id: http://mc-server.googlecode.com/svn/trunk@1339 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Cuboid.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/Cuboid.h') diff --git a/source/Cuboid.h b/source/Cuboid.h index 577bfa401..44db7b98e 100644 --- a/source/Cuboid.h +++ b/source/Cuboid.h @@ -59,6 +59,9 @@ public: ); } + /// Returns true if this cuboid is completely inside the specifie cuboid (in all 6 coords) + bool IsCompletelyInside(const cCuboid & a_Outer) const; + /// Moves the cuboid by the specified offsets in each direction void Move(int a_OfsX, int a_OfsY, int a_OfsZ); -- cgit v1.2.3