Merge pull request #5163 from Mailaender/prettify-trait-documentation
Beautified the trait documentation
This commit is contained in:
@@ -89,7 +89,7 @@ namespace OpenRA
|
||||
public static float Dot(float2 a, float2 b) { return a.X * b.X + a.Y * b.Y; }
|
||||
public float2 Round() { return new float2((float)Math.Round(X), (float)Math.Round(Y)); }
|
||||
|
||||
public override string ToString() { return "({0},{1})".F(X, Y); }
|
||||
public override string ToString() { return "{0},{1}".F(X, Y); }
|
||||
public int2 ToInt2() { return new int2((int)X, (int)Y); }
|
||||
|
||||
public static float2 Max(float2 a, float2 b) { return new float2(Math.Max(a.X, b.X), Math.Max(a.Y, b.Y)); }
|
||||
|
||||
@@ -60,14 +60,14 @@ namespace OpenRA
|
||||
return (uint)((orig & 0xff000000) >> 24) | ((orig & 0x00ff0000) >> 8) | ((orig & 0x0000ff00) << 8) | ((orig & 0x000000ff) << 24);
|
||||
}
|
||||
|
||||
public static int Lerp( int a, int b, int mul, int div )
|
||||
public static int Lerp(int a, int b, int mul, int div)
|
||||
{
|
||||
return a + ( b - a ) * mul / div;
|
||||
return a + (b - a) * mul / div;
|
||||
}
|
||||
|
||||
public static int2 Lerp( int2 a, int2 b, int mul, int div )
|
||||
public static int2 Lerp(int2 a, int2 b, int mul, int div)
|
||||
{
|
||||
return a + ( b - a ) * mul / div;
|
||||
return a + (b - a) * mul / div;
|
||||
}
|
||||
|
||||
public int2 Clamp(Rectangle r)
|
||||
|
||||
Reference in New Issue
Block a user