add GetSize() in RectScope

This commit is contained in:
2020-10-14 21:01:57 +08:00
parent f22bca1403
commit 0c045fb8b1

View File

@@ -39,6 +39,7 @@ namespace hgl
const vec2<T> GetLeftBottom ()const{return vec2<T>(Left, Top+Height);}
const vec2<T> GetRightTop ()const{return vec2<T>(Left+Width, Top);}
const vec2<T> GetRightBottom()const{return vec2<T>(Left+Width, Top+Height);}
const vec2<T> GetSize ()const{return vec2<T>(Width, Height);}
public: