Use expression body syntax
This commit is contained in:
@@ -93,8 +93,8 @@ namespace OpenRA
|
||||
public static float2 Max(float2 a, float2 b) { return new float2(Math.Max(a.X, b.X), Math.Max(a.Y, b.Y)); }
|
||||
public static float2 Min(float2 a, float2 b) { return new float2(Math.Min(a.X, b.X), Math.Min(a.Y, b.Y)); }
|
||||
|
||||
public float LengthSquared { get { return X * X + Y * Y; } }
|
||||
public float Length { get { return (float)Math.Sqrt(LengthSquared); } }
|
||||
public float LengthSquared => X * X + Y * Y;
|
||||
public float Length => (float)Math.Sqrt(LengthSquared);
|
||||
}
|
||||
|
||||
public class EWMA
|
||||
|
||||
Reference in New Issue
Block a user