1 // CS0121: The call is ambiguous between the following methods or properties: `V2.operator -(V2, V2)' and `V3.operator -(V3, V3)'
8 public V3 (float ix, float iy, float iz) { x = ix; y = iy; z = iz; }
10 static public V3 operator - (V3 lhs, V3 rhs)
12 return new V3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z);
20 public V2 (float ix, float iy) { x = ix; y = iy; }
22 public static implicit operator V2 (V3 v)
24 return new V2 (v.x, v.y);
27 public static implicit operator V3 (V2 v)
29 return new V3 (v.x, v.y, 0);
32 static public V2 operator - (V2 lhs, V2 rhs)
34 return new V2 (lhs.x - rhs.x, lhs.y - rhs.y);