From 5b62c4c3145c08b093521e42c565922fa85de4ad Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 26 Jun 2015 17:24:51 -0500 Subject: Reorganised the redstone simulator -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved --- src/Vector3.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Vector3.h') diff --git a/src/Vector3.h b/src/Vector3.h index 74cffac33..900ad65e3 100644 --- a/src/Vector3.h +++ b/src/Vector3.h @@ -255,6 +255,11 @@ public: ); } + inline Vector3 operator - (void) const + { + return Vector3(-x, -y, -z); + } + inline Vector3 operator * (const Vector3& a_Rhs) const { return Vector3( -- cgit v1.2.3