示例#1
0
 // Operator overloads
 public static Vector2f operator +(in Vector2f v1, in Vector2f v2) => new Vector2f(v1.X + v2.X, v1.Y + v2.Y);
示例#2
0
 // Operator overloads
 public static Vector3i operator +(in Vector3i v1, in Vector3i v2) => new Vector3i(v1.X + v2.X, v1.Y + v2.Y, v1.Z + v2.Z);
示例#3
0
 // Operator overloads
 public static Vector2i operator +(in Vector2i v1, in Vector2i v2) => new Vector2i(v1.X + v2.X, v1.Y + v2.Y);
示例#4
0
 // Operator overloads
 public static Vector3f operator +(in Vector3f v1, in Vector3f v2) => new Vector3f(v1.X + v2.X, v1.Y + v2.Y, v1.Z + v2.Z);
 return(new Vector3(v1.X + v2.X, v1.Y + v2.Y, v1.Z + v2.Z));