TouchVG framework
Point2d
add
asVector
distanceSquare
distanceTo
get
isDegenerate
isEqualTo
kInvalid
kOrigin
length
negate
offset
offset
operator!=
operator*
operator*
operator*
operator*
operator*=
operator*=
operator+
operator+
operator+
operator+=
operator+=
operator-
operator-
operator-
operator-=
operator/
operator/=
operator==
Point2d
Point2d
Point2d
polarPoint
rulerPoint
rulerPoint
scaleBy
scaleBy
set
set
subtract
subtract
transform
x
y
◆
rulerPoint()
[2/2]
Point2d
Point2d::rulerPoint
(
const
Point2d
&
dir
,
float
xoff
,
float
yoff
)
const
移动直尺法
相对于起始点(本点)和方向点,在沿线方向和垂直沿线方向分别偏移计算坐标
参数
dir
方向点,本点→方向点
xoff
在沿线方向(→)偏移
yoff
垂直沿线方向(↑)偏移
返回
计算出的坐标
函数调用图:
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证