TouchVG framework
Vector2d
add
angle
angle2
angledVector
angleTo
angleTo2
crossProduct
distanceToVector
dotProduct
get
isCodirectionalTo
isCodirectionalTo
isDegenerate
isEqualTo
isLeftOf
isOppositeTo
isOppositeTo
isParallelTo
isParallelTo
isPerpendicularTo
isPerpendicularTo
isRightOf
isUnitVector
isZeroVector
kIdentity
kXAxis
kYAxis
length
lengthSquare
negate
normalize
operator!=
operator*
operator*
operator*
operator*
operator*
operator*=
operator*=
operator+
operator+=
operator-
operator-
operator-=
operator/
operator/
operator/=
operator==
perpVector
projectResolveVector
projectScaleToVector
resolveVector
resolveVector
scaleBy
scaleBy
scaledVector
set
set
setAngleLength
setLength
subtract
transform
unitVector
Vector2d
Vector2d
Vector2d
x
y
◆
isParallelTo()
[2/2]
bool Vector2d::isParallelTo
(
const
Vector2d
&
vec
,
const
Tol
&
tol
,
bool &
nonzero
)
const
判断两个矢量是否平行
判断本矢量和另一个矢量是否平行,并检查零矢量。 零矢量和任何矢量平行
参数
[in]
vec
另一个矢量
[in]
tol
判断的容差,用到其矢量容差值
[out]
nonzero
这两个矢量中是否没有零矢量
返回
是否平行
函数调用图:
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证