TouchVG framework
mglnrel
clipLine
cross2Beeline
cross2Line
cross2LineV
crossLineAbc
crossLineBeeline
isBetweenLine
isBetweenLine2
isBetweenLine3
isColinear
isColinear2
isConvex
isIntersect
isIntersectProp
isLeft
isLeft2
isLeftOn
isLeftOn2
isProjectBetweenLine
isProjectBetweenRayline
ptInArea
PtInAreaRet
ptToBeeline
ptToBeeline2
ptToLine
◆
clipLine()
bool mglnrel::clipLine
(
Point2d
&
pt1
,
Point2d
&
pt2
,
const
Box2d
&
box
)
static
用矩形剪裁线段,Sutherland-Cohen算法
参数
[in]
pt1
线段的起点
[in]
pt2
线段的终点
[in]
box
剪裁矩形,必须为非空规范化矩形
返回
剪裁后是否有处于剪裁矩形内的线段部分
函数调用图:
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证