CM3D2.SubScreen.Plugin.SubScreen.PixelValues.PropScreen C# (CSharp) Method

PropScreen() public method

public PropScreen ( float left, float top, float width, float height ) : Rect
left float
top float
width float
height float
return UnityEngine.Rect
            public Rect PropScreen(float left, float top, float width, float height)
            {
                return new Rect((int)((Screen.width - Margin * 2) * left + Margin)
                               , (int)((Screen.height - Margin * 2) * top + Margin)
                               , (int)((Screen.width - Margin * 2) * width)
                               , (int)((Screen.height - Margin * 2) * height));
            }