Ejemplo n.º 1
0
 /// <summary>
 /// Adds two vectors together for a new result.
 /// </summary>
 /// <param name="self">The left side vector.</param>
 /// <param name="other">The right side vector.</param>
 /// <returns>The resulting vector.</returns>
 public static Vec2D operator +(in Vec2D self, in Vec2D other) => new Vec2D(self.X + other.X, self.Y + other.Y);
Ejemplo n.º 2
0
 /// <summary>
 /// Adds two vectors together for a new result.
 /// </summary>
 /// <param name="self">The left side vector.</param>
 /// <param name="other">The right side vector.</param>
 /// <returns>The resulting vector.</returns>
 public static Vec2I operator +(in Vec2I self, in Vec2I other) => new Vec2I(self.X + other.X, self.Y + other.Y);
Ejemplo n.º 3
0
 /// <summary>
 /// Adds two vectors together for a new result.
 /// </summary>
 /// <param name="self">The left side vector.</param>
 /// <param name="other">The right side vector.</param>
 /// <returns>The resulting vector.</returns>
 public static Vector3D operator +(in Vector3D self, in Vector3D other) => new Vector3D(self.X + other.X, self.Y + other.Y, self.Z + other.Z);
Ejemplo n.º 4
0
 /// <summary>
 /// Adds two vectors together for a new result.
 /// </summary>
 /// <param name="self">The left side vector.</param>
 /// <param name="other">The right side vector.</param>
 /// <returns>The resulting vector.</returns>
 public static Vec2F operator +(in Vec2F self, in Vec2F other) => new Vec2F(self.X + other.X, self.Y + other.Y);
Ejemplo n.º 5
0
 return(new GpPoint(
            self.X + point.X,
Ejemplo n.º 6
0
 /// <summary>
 /// Adds two vectors together for a new result.
 /// </summary>
 /// <param name="self">The left side vector.</param>
 /// <param name="other">The right side vector.</param>
 /// <returns>The resulting vector.</returns>
 public static Vec3F operator +(in Vec3F self, in Vec3F other) => new Vec3F(self.X + other.X, self.Y + other.Y, self.Z + other.Z);