From cd8bd144f6d4638b56c1c189f2e81a64e32c1638 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 12 Nov 2015 23:19:14 -0800 Subject: [PATCH] [Math] Fix Matrix-Vector multiplication --- Math/Math/Matrix.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Math/Math/Matrix.swift b/Math/Math/Matrix.swift index d4c3ea6..d6e68df 100644 --- a/Math/Math/Matrix.swift +++ b/Math/Math/Matrix.swift @@ -292,10 +292,10 @@ public func *(lhs: T, rhs: T) -> T { // MARK: Matrix-Vector multiplication public func *(lhs: Matrix4, rhs: Vector4) -> Vector4 { - var out = Vector4() + var out = Vector4(x: 0.0, y: 0.0, z: 0.0, w: 0.0) for i in 0..