From d06029f32d97e0d8a531be10e382b4c0d7899606 Mon Sep 17 00:00:00 2001 From: Ben Kuper Date: Wed, 30 Oct 2024 18:42:33 +0100 Subject: [PATCH] fix typo --- modules/juce_opengl/geometry/juce_Vector3D.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_opengl/geometry/juce_Vector3D.h b/modules/juce_opengl/geometry/juce_Vector3D.h index cca7ff4454..c4d47c91fc 100644 --- a/modules/juce_opengl/geometry/juce_Vector3D.h +++ b/modules/juce_opengl/geometry/juce_Vector3D.h @@ -58,7 +58,7 @@ public: static Vector3D zAxis() noexcept { return { 0, 0, (Type) 1 }; } Vector3D& operator+= (Type value) noexcept { x += value; y += value; z += value; return *this; } - Vector3D& operator-= (Type value) noexcept { x -= value; y -= value; z -= scaleFactor; return *this; } + Vector3D& operator-= (Type value) noexcept { x -= value; y -= value; z -= value; return *this; } Vector3D& operator*= (Type scaleFactor) noexcept { x *= scaleFactor; y *= scaleFactor; z *= scaleFactor; return *this; } Vector3D& operator/= (Type scaleFactor) noexcept { x /= scaleFactor; y /= scaleFactor; z /= scaleFactor; return *this; } Vector3D& operator+= (Vector3D other) noexcept { x += other.x; y += other.y; z += other.z; return *this; }