new Ycc.Math.Dot(x, y)
点
| Name | Type | Description |
|---|---|---|
x |
number | x坐标 |
y |
number | y坐标 |
Members
-
xnumber
-
x坐标
-
ynumber
-
y坐标
Methods
-
staticYcc.Math.Dot.threeDotIsOnLine(dot1, dot2, dot3)
-
判断三点是否共线
Name Type Description dot1dot2dot3 -
isEqual(dot){boolean}
-
判读两点位置是否相同
Name Type Description dotReturns:
Type Description boolean -
isInRect(rect)
-
点是否在某个区域内
Name Type Description rectYcc.Math.Rect 区域 -
plus(dot){Ycc.Math.Dot}
-
点的加法/点的偏移量
Name Type Description dotYcc.Math.Dot 加的点 Returns:
Type Description Ycc.Math.Dot 返回一个新的点 -
rotate(rotation, anchorDot)
-
将当前点绕另外一个点旋转一定度数
Name Type Description rotation旋转角度 anchorDot锚点坐标 Returns:
旋转后的点