[Math] Bump the precedence of cross product to 151 -- it should be done first
This commit is contained in:
		
							parent
							
								
									bf9a4ba138
								
							
						
					
					
						commit
						90e9b96468
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -240,12 +240,12 @@ public func ∙<T: Vector>(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)
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue