MCPcopy
hub / github.com/graphif/project-graph / rotateDegrees

Method rotateDegrees

packages/data-structures/src/Vector.ts:90–92  ·  view source on GitHub ↗

* 将自身向量按逆时针旋转一定角度,获得一个新的向量 * @param degrees 单位:度

(degrees: number)

Source from the content-addressed store, hash-verified

88 * @param degrees 单位:度
89 */
90 rotateDegrees(degrees: number): Vector {
91 return this.rotate(degrees * (Math.PI / 180));
92 }
93
94 /**
95 * 计算自己向量与另一个向量之间的角度

Callers 15

splitVectorMethod · 0.80
Vector.test.tsFile · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
renderCenterPointerMethod · 0.80
renderCuttingFlashMethod · 0.80
renderArrowHeadMethod · 0.80
generateArrowHeadSvgMethod · 0.80
renderCycleStateMethod · 0.80
renderCycleStateMethod · 0.80
renderTestMethod · 0.80

Calls 1

rotateMethod · 0.95

Tested by

no test coverage detected