/// <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);
/// <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);
/// <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);
/// <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);
return(new GpPoint( self.X + point.X,
/// <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);