From 90e9b964684e7da9e221e5f0424d9aa39eb02073 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 1 Nov 2015 07:32:17 -0800 Subject: [PATCH] [Math] Bump the precedence of cross product to 151 -- it should be done first --- Math/Math/Vector.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Math/Math/Vector.swift b/Math/Math/Vector.swift index 4b9473c..a81a38a 100644 --- a/Math/Math/Vector.swift +++ b/Math/Math/Vector.swift @@ -240,12 +240,12 @@ public func ∙(lhs: T, rhs: T) -> Float { return lhs.dot(rhs) } -infix operator ×= { associativity left precedence 150 } +infix operator ×= { associativity left precedence 151 } public func ×=(inout lhs: Vector3, rhs: Vector3) { lhs = lhs.cross(rhs) } -infix operator × { associativity left precedence 150 } +infix operator × { associativity left precedence 151 } public func ×(lhs: Vector3, rhs: Vector3) -> Vector3 { return lhs.cross(rhs) } \ No newline at end of file