UnityEditor.RectangleTool.TimeToPixel C# (CSharp) Method

TimeToPixel() public method

public TimeToPixel ( float time ) : float
time float
return float
        public float TimeToPixel(float time)
        {
            float width = this.contentRect.width;
            float num2 = this.m_TimeArea.shownArea.xMax - this.m_TimeArea.shownArea.xMin;
            float xMin = this.m_TimeArea.shownArea.xMin;
            return (((time - xMin) * width) / num2);
        }