UnityEditor.Tools.GetRectFromBoundsForAxis C# (CSharp) 메소드

GetRectFromBoundsForAxis() 개인적인 정적인 메소드

private static GetRectFromBoundsForAxis ( Bounds bounds, int axis ) : Rect
bounds UnityEngine.Bounds
axis int
리턴 UnityEngine.Rect
        private static Rect GetRectFromBoundsForAxis(Bounds bounds, int axis)
        {
            switch (axis)
            {
                case 0:
                    return new Rect(-bounds.max.z, bounds.min.y, bounds.size.z, bounds.size.y);

                case 1:
                    return new Rect(bounds.min.x, -bounds.max.z, bounds.size.x, bounds.size.z);
            }
            return new Rect(bounds.min.x, bounds.min.y, bounds.size.x, bounds.size.y);
        }