Fixed accessors for static properties of vector types

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-29 02:13:56 +02:00
1 親 9ddb20565f
コミット 035658cdbe
13ファイル変更
+64 -64

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

+6 -6
ファイルの表示
@@ -12,32 +12,32 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Int4"/> value with all components set to 0
/// </summary>
public static Int4 Zero { get; } = 0;
public static Int4 Zero => 0;
/// <summary>
/// Gets an <see cref="Int4"/> value with all components set to 1
/// </summary>
public static Int4 One { get; } = 1;
public static Int4 One => 1;
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// </summary>
public static Int4 UnitX { get; } = new Int4(1, 0, 0, 0);
public static Int4 UnitX => new Int4(1, 0, 0, 0);
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// </summary>
public static Int4 UnitY { get; } = new Int4(0, 1, 0, 0);
public static Int4 UnitY => new Int4(0, 1, 0, 0);
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// </summary>
public static Int4 UnitZ { get; } = new Int4(0, 0, 1, 0);
public static Int4 UnitZ => new Int4(0, 0, 1, 0);
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="W"/> component set to 1, and the others to 0
/// </summary>
public static Int4 UnitW { get; } = new Int4(0, 0, 0, 1);
public static Int4 UnitW => new Int4(0, 0, 0, 1);
/// <summary>
/// Creates a new <see cref="Int4"/> instance with the specified parameters