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
◆
isLeftOn2()
bool mglnrel::isLeftOn2
(
const
Point2d
&
a
,
const
Point2d
&
b
,
const
Point2d
&
pt
,
const
Tol
&
tol
)
static
判断点pt是否在有向直线a->b的左边或线上
参数
[in]
a
直线的起点
[in]
b
直线的终点
[in]
pt
给定的测试点
[in]
tol
判断的容差,用到其中的长度容差值
返回
在直线的左边或线上时返回true,否则返回false
函数调用图:
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证