From a55f61548ef050f29aab96095b80af4c9f046281 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sat, 18 Apr 2020 11:44:35 +0200 Subject: Extended Vector3 (#4666) --- src/Vector3.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Vector3.h') diff --git a/src/Vector3.h b/src/Vector3.h index 1847baf5b..b3d54514b 100644 --- a/src/Vector3.h +++ b/src/Vector3.h @@ -178,6 +178,16 @@ public: ); } + /** Returns a new Vector3i with coords set to std::ceil() of this vector's coords. */ + inline Vector3 Ceil() const + { + return Vector3( + CeilC(x), + CeilC(y), + CeilC(z) + ); + } + // tolua_end inline bool operator != (const Vector3 & a_Rhs) const -- cgit v1.2.3