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
◆
crossLineBeeline()
bool mglnrel::crossLineBeeline
(
const
Point2d
&
a
,
const
Point2d
&
b
,
const
Point2d
&
c
,
const
Point2d
&
d
,
Point2d
&
ptCross
,
float *
pv
=
(float*)0
,
const
Tol
&
tolVec
=
Tol::gTol
()
)
static
求线段和直线的交点
参数
[in]
a
线段的起点
[in]
b
线段的终点
[in]
c
直线的起点
[in]
d
直线的终点
[out]
ptCross
交点
[out]
pv
交点在直线上的参数,如果为NULL则忽略该参数
[in]
tolVec
判断平行的容差,用到其矢量容差值
返回
是否有交点
函数调用图:
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证