Пример #1
0
 static public Rect GetOrthographicWorldRect(this Camera item)
 {
     return(RectExtensions.CreateMinMaxRect(
                item.GetOrthographicWorldLeftBottom(),
                item.GetOrthographicWorldRightTop()
                ));
 }
Пример #2
0
 static public Rect GetBottomExtrusion(this Rect item, float amount)
 {
     return(RectExtensions.CreateMinMaxRect(
                item.xMin,
                item.yMin - amount,
                item.xMax,
                item.yMin
                ));
 }
Пример #3
0
 static public Rect GetArear(this Bounds item)
 {
     return(RectExtensions.CreateMinMaxRect(item.min.GetArear(), item.max.GetArear()));
 }