MCPcopy Index your code
hub / github.com/graphif/project-graph / dot

Method dot

packages/data-structures/src/Vector.ts:66–68  ·  view source on GitHub ↗
(vector: Vector)

Source from the content-addressed store, hash-verified

64 }
65
66 dot(vector: Vector): number {
67 return this.x * vector.x + this.y * vector.y;
68 }
69
70 /**
71 * 获得一个与该向量垂直的单位向量

Callers 6

angleMethod · 0.95
isPointNearLineMethod · 0.80
Vector.test.tsFile · 0.80
collectFanNodesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected