Skip to content

Commit

Permalink
Tabs removed, spaces added
Browse files Browse the repository at this point in the history
  • Loading branch information
slavniyteo committed Nov 9, 2017
1 parent 6a6148f commit 63ac63e
Show file tree
Hide file tree
Showing 12 changed files with 975 additions and 975 deletions.
16 changes: 8 additions & 8 deletions Assets/RectEx/ColumnExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
using RectEx.Internal;

namespace RectEx {
public static class ColumnExtensions {
public static class ColumnExtensions {

private const float SPACE = 2f;
private const float SPACE = 2f;

public static Rect[] Column(this Rect rect, int count, float space = SPACE){
rect = rect.Invert();
var result = rect.Row(count, space);
return result.Select(x => x.Invert()).ToArray();
}

public static Rect[] Column(this Rect rect, float[] weights, float space = SPACE){
return Column(rect, weights, null, space);
}
public static Rect[] Column(this Rect rect, float[] weights, float space = SPACE){
return Column(rect, weights, null, space);
}

public static Rect[] Column(this Rect rect, float[] weights, float[] widthes, float space = SPACE) {
public static Rect[] Column(this Rect rect, float[] weights, float[] widthes, float space = SPACE) {
rect = rect.Invert();
var result = rect.Row(weights, widthes, space);
return result.Select(x => x.Invert()).ToArray();
}

}
}
}
}
2 changes: 1 addition & 1 deletion Assets/RectEx/CutFromExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ public static Rect[] CutFromTop(this Rect rect, float height, float space = SPAC
return new Rect[]{first, second};
}
}
}
}
Loading

0 comments on commit 63ac63e

Please sign in to comment.