Moved shared operators to template files

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-24 17:40:17 +01:00
1 親 e49d42abb1
コミット c0bc242c7a
26ファイル変更
+510 -390

検索条件に一致するファイルはありません

-34
ファイルの表示
@@ -103,39 +103,5 @@ namespace ComputeSharp
/// </summary>
/// <param name="xy">The input <see cref="Int2"/> value to cast.</param>
public static implicit operator Double2(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.({nameof(Double2)})");
/// <summary>
/// Negates a <see cref="Int2"/> value.
/// </summary>
/// <param name="xy">The <see cref="Int2"/> value to negate.</param>
public static Int2 operator -(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.-");
/// <summary>
/// Sums two <see cref="Int2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int2"/> value to sum.</param>
/// <param name="right">The second <see cref="Int2"/> value to sum.</param>
public static Int2 operator +(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.+");
/// <summary>
/// Divides two <see cref="Int2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int2"/> value to divide.</param>
/// <param name="right">The second <see cref="Int2"/> value to divide.</param>
public static Int2 operator /(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}./");
/// <summary>
/// Multiplies two <see cref="Int2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int2"/> value to multiply.</param>
/// <param name="right">The second <see cref="Int2"/> value to multiply.</param>
public static Int2 operator *(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.*");
/// <summary>
/// Subtracts two <see cref="Int2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int2"/> value to subtract.</param>
/// <param name="right">The second <see cref="Int2"/> value to subtract.</param>
public static Int2 operator -(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.-");
}
}