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
◆
resolveVector()
[1/2]
bool Vector2d::resolveVector
(
const
Vector2d
&
uAxis
,
const
Vector2d
&
vAxis
,
Vector2d
&
uv
)
const
矢量分解
将本矢量在两个不共线的非零矢量上进行矢量分解, 本矢量 = u*uAxis+v*vAxis
参数
[in]
uAxis
u轴矢量
[in]
vAxis
v轴矢量
[out]
uv
在这两轴上的矢量分量系数,(uAxis * u, vAxis * v)
返回
是否求解成功,uAxis和vAxis共线时失败
函数调用图:
这是这个函数的调用关系图:
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证