Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/graphif/project-graph
/ getPerpendicular
Method
getPerpendicular
packages/data-structures/src/Vector.ts:73–75 ·
view source on GitHub ↗
* 获得一个与该向量垂直的单位向量
()
Source
from the content-addressed store, hash-verified
71
* 获得一个与该向量垂直的单位向量
72
*/
73
getPerpendicular(): Vector {
74
return
new
Vector(-this.y, this.x).normalize();
75
}
76
77
/**
78
* 将自身向量按顺时针旋转一定角度,获得一个新的向量
Callers
nothing calls this directly
Calls
1
normalize
Method · 0.80
Tested by
no test coverage detected