Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CoderOpen/waimai
/ getPointDis
Method
getPointDis
front/components/mpvueGestureLock/gestureLock.js:121–123 ·
view source on GitHub ↗
(ax, ay, bx, by)
Source
from the content-addressed store, hash-verified
119
120
// 获取两点之间距离
121
getPointDis(ax, ay, bx, by) {
122
return
Math.sqrt(Math.pow(ax - bx, 2) + Math.pow(ay - by, 2));
123
}
124
125
// 移动 绘制
126
moveDraw(e) {
Callers
2
drawLine
Method · 0.95
isPointInCycle
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected