TouchVG framework
Box2d
Box2d
Box2d
Box2d
Box2d
Box2d
Box2d
Box2d
Box2d
Box2d
Box2d
center
contains
contains
contains
contains
deflate
deflate
deflate
deflate
deflate
empty
get
get
get
height
inflate
inflate
inflate
inflate
inflate
intersectWith
intersectWith
isEmpty
isEmptyMinus
isEqualTo
isIntersect
isNormalized
isNull
kIdentity
leftBottom
leftTop
normalize
offset
offset
offset
operator &
operator &=
operator!=
operator*
operator*
operator*=
operator*=
operator+
operator+
operator+=
operator+=
operator-
operator-
operator-=
operator-=
operator/
operator/=
operator==
operator|
operator|=
rightBottom
rightTop
scaleBy
set
set
set
set
set
set
size
swapTopBottom
unionWith
unionWith
unionWith
unionWith
width
xmax
xmin
ymax
ymin
◆
contains()
[3/4]
bool Box2d::contains
(
const
Box2d
&
box
)
const
判断一个矩形框是否在本矩形框内,闭区间
判断是在本矩形框内或和本矩形框的边有重合。
这两个矩形框必须规范化。
参数
box
另一个矩形框
返回
如果在本矩形框内或有重合,则返回true,否则返回false
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证