UnityEditor.GradientEditor.CalcSwatchRect C# (CSharp) Method

CalcSwatchRect() private method

private CalcSwatchRect ( Rect totalRect, Swatch s ) : Rect
totalRect UnityEngine.Rect
s Swatch
return UnityEngine.Rect
        private Rect CalcSwatchRect(Rect totalRect, Swatch s)
        {
            float time = s.m_Time;
            return new Rect((totalRect.x + Mathf.Round(totalRect.width * time)) - 5f, totalRect.y, 10f, totalRect.height);
        }