From c4f9b9573f1535d3297946fbb5c73393594ffa24 Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 19 May 2019 21:28:10 +0200 Subject: CPhysical almost done --- src/math/Vector.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/math/Vector.h') diff --git a/src/math/Vector.h b/src/math/Vector.h index 98c3f0ec..fbc59832 100644 --- a/src/math/Vector.h +++ b/src/math/Vector.h @@ -64,6 +64,7 @@ public: this->z /= t; return *this; } + bool IsZero(void) { return x == 0.0f && y == 0.0f && z == 0.0f; } }; inline float -- cgit v1.2.3