瀏覽代碼

Integers are more equal than others.

Brucey 3 年之前
父節點
當前提交
0df6a3bfe0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      vector.mod/vector.bmx

+ 3 - 3
vector.mod/vector.bmx

@@ -1391,7 +1391,7 @@ Struct SVec2I
 	bbdoc: Returns #True if the vector and @b are aproximately equal.
 	bbdoc: Returns #True if the vector and @b are aproximately equal.
 	End Rem
 	End Rem
 	Method Operator=:Int(b:SVec2I)
 	Method Operator=:Int(b:SVec2I)
-		Return (Self - b).LengthSquared() < 0.00000001
+		Return x = b.x And y = b.y
 	End Method
 	End Method
 
 
 	Rem
 	Rem
@@ -1696,7 +1696,7 @@ Struct SVec3I
 	bbdoc: Returns #True if the vector and @b are aproximately equal.
 	bbdoc: Returns #True if the vector and @b are aproximately equal.
 	End Rem
 	End Rem
 	Method Operator=:Int(b:SVec3I)
 	Method Operator=:Int(b:SVec3I)
-		Return (Self - b).LengthSquared() < 0.00000001
+		Return x = b.x And y = b.y And z = b.z
 	End Method
 	End Method
 
 
 	Rem
 	Rem
@@ -1917,7 +1917,7 @@ Struct SVec4I
 	bbdoc: Returns #True if the vector and @b are aproximately equal.
 	bbdoc: Returns #True if the vector and @b are aproximately equal.
 	End Rem
 	End Rem
 	Method Operator=:Int(b:SVec4I)
 	Method Operator=:Int(b:SVec4I)
-		Return (Self - b).LengthSquared() < 0.00000001
+		Return x = b.x And y = b.y And z = b.z And w = b.w
 	End Method
 	End Method
 
 
 	Rem
 	Rem