AR_Engine_SDK
|
Functions | |
function XUIRect | new () end |
function XUIRect | new (x, y, width, height) end |
function XUIRect | new (pos, dimension) end |
function XUIRect | new (other) end |
function XUIRect | SetRect (x, y, width, height) end |
function XUIRect | GetMinX () end |
function XUIRect | GetMidX () end |
function XUIRect | GetMaxX () end |
function XUIRect | GetMinY () end |
function XUIRect | GetMidY () end |
function XUIRect | GetMaxY () end |
function XUIRect | Equals (rect) end |
function XUIRect | ContainsPoint (point) end |
function XUIRect | IntersectsRect (rect) end |
function XUIRect | Merge (rect) end |
Variables | |
XUIRect = {} | |
XUIRect | origin = {} |
@type XVECTOR2 起始点 More... | |
XUIRect | size = {} |
@type XVECTOR2 矩形宽高 More... | |
function XUIRect ContainsPoint | ( | point | ) |
判断给定的点是否在当前矩形内部
point | XVECTOR2 给定的点坐标 |
function XUIRect Equals | ( | rect | ) |
function XUIRect GetMaxX | ( | ) |
得到矩形最大的X
function XUIRect GetMaxY | ( | ) |
得到矩形最大的Y
function XUIRect GetMidX | ( | ) |
中心点的X坐标
function XUIRect GetMidY | ( | ) |
中心点的Y坐标
function XUIRect GetMinX | ( | ) |
得到矩形最小的X
function XUIRect GetMinY | ( | ) |
得到矩形最小的Y
function XUIRect IntersectsRect | ( | rect | ) |
function XUIRect Merge | ( | rect | ) |
function XUIRect new | ( | pos | , |
dimension | |||
) |
function xes__Rect new | ( | other | ) |
设置矩形的x,y,矩形的宽度和高度
x | number |
y | number |
width | number |
height | number |
XUIRect origin = {} |
@type XVECTOR2 起始点
XUIRect size = {} |
@type XVECTOR2 矩形宽高
XUIRect = {} |