Fix IDE0090
This commit is contained in:
committed by
Pavel Penev
parent
164abfdae1
commit
8a285f9b19
@@ -20,7 +20,7 @@ namespace OpenRA
|
||||
public readonly struct float3 : IEquatable<float3>
|
||||
{
|
||||
public readonly float X, Y, Z;
|
||||
public float2 XY => new float2(X, Y);
|
||||
public float2 XY => new(X, Y);
|
||||
|
||||
public float3(float x, float y, float z) { X = x; Y = y; Z = z; }
|
||||
public float3(float2 xy, float z) { X = xy.X; Y = xy.Y; Z = z; }
|
||||
@@ -60,7 +60,7 @@ namespace OpenRA
|
||||
|
||||
public override string ToString() { return $"{X},{Y},{Z}"; }
|
||||
|
||||
public static readonly float3 Zero = new float3(0, 0, 0);
|
||||
public static readonly float3 Ones = new float3(1, 1, 1);
|
||||
public static readonly float3 Zero = new(0, 0, 0);
|
||||
public static readonly float3 Ones = new(1, 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user