Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/graphif/project-graph
/ divide
Method
divide
packages/data-structures/src/Vector.ts:34–39 ·
view source on GitHub ↗
(scalar: number)
Source
from the content-addressed store, hash-verified
32
}
33
34
divide(scalar: number): Vector {
35
if
(scalar === 0) {
36
return
Vector.getZero();
37
}
38
return
new
Vector(this.x / scalar, this.y / scalar);
39
}
40
41
/**
42
* 获得向量的模长
Callers
15
getCoverWorldRectangle
Method · 0.95
computeFunction
Method · 0.80
inCenter
Method · 0.80
center
Method · 0.80
getCenter
Method · 0.80
Vector.test.ts
File · 0.80
generateFullView
Function · 0.80
ControllerAssociationReshapeClass
Class · 0.80
handleRectangleSelectByTwoFingerMove
Method · 0.80
handleDrageMoveEntityByTwoFingerMove
Method · 0.80
renderTextFromCenter
Method · 0.80
renderTempTextFromCenter
Method · 0.80
Calls
1
getZero
Method · 0.80
Tested by
no test coverage detected