UnityEditor.SceneView.Frame C# (CSharp) Method

Frame() private method

private Frame ( Bounds bounds ) : bool
bounds UnityEngine.Bounds
return bool
        internal bool Frame(Bounds bounds)
        {
            float num = bounds.extents.magnitude * 1.5f;
            switch (num)
            {
                case float.PositiveInfinity:
                    return false;

                case 0f:
                    num = 10f;
                    break;
            }
            this.LookAt(bounds.center, this.m_Rotation.target, num * 2.2f, this.m_Ortho.value, EditorApplication.isPlaying);
            return true;
        }