Exemple #1
0
 public static Rect GetSumRect(Rect rect1, Rect rect2)
 {
     return(NgLayout.GetOffsetRect(rect1, Mathf.Min(0f, rect2.get_xMin() - rect1.get_xMin()), Mathf.Min(0f, rect2.get_yMin() - rect1.get_yMin()), Mathf.Max(0f, rect2.get_xMax() - rect1.get_xMax()), Mathf.Max(0f, rect2.get_yMax() - rect1.get_yMax())));
 }
Exemple #2
0
 public static Rect GetSumRect(Rect rect1, Rect rect2)
 {
     return(NgLayout.GetOffsetRect(rect1, Mathf.Min(0f, rect2.xMin - rect1.xMin), Mathf.Min(0f, rect2.yMin - rect1.yMin), Mathf.Max(0f, rect2.xMax - rect1.xMax), Mathf.Max(0f, rect2.yMax - rect1.yMax)));
 }