Kiwano Engine v1.3.x
kiwano::math::RectT< _Ty > 模板结构体 参考

Public 类型

using ValueType = _Ty
 

Public 成员函数

 RectT (ValueType left, ValueType top, ValueType right, ValueType bottom)
 
 RectT (const Vec2T< ValueType > &left_top, const Vec2T< ValueType > &right_bottom)
 
 RectT (const RectT &other)
 
RectToperator= (const RectT &other)
 
bool operator== (const RectT &rect) const
 
void Set (ValueType left, ValueType top, ValueType right, ValueType bottom)
 
Vec2T< ValueType > GetCenter () const
 
Vec2T< ValueType > GetLeftTop () const
 
Vec2T< ValueType > GetRightBottom () const
 
Vec2T< ValueType > GetRightTop () const
 
Vec2T< ValueType > GetLeftBottom () const
 
ValueType GetLeft () const
 
ValueType GetTop () const
 
ValueType GetRight () const
 
ValueType GetBottom () const
 
ValueType GetWidth () const
 
ValueType GetHeight () const
 
Vec2T< ValueType > GetSize () const
 
bool IsEmpty () const
 
bool ContainsPoint (const Vec2T< ValueType > &point) const
 
bool Intersects (const RectT &rect) const
 

静态 Public 成员函数

static RectT Infinite ()
 

Public 属性

Vec2T< ValueType > left_top
 
Vec2T< ValueType > right_bottom