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

Method fromDegrees

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

* 根据角度构造一个单位向量 * @param degrees 单位:度

(degrees: number)

Source from the content-addressed store, hash-verified

169 * @param degrees 单位:度
170 */
171 static fromDegrees(degrees: number): Vector {
172 return Vector.fromAngle(degrees * (Math.PI / 180));
173 }
174
175 /**
176 * 计算两个点之间的向量,让两个点构成一个向量

Callers 1

Vector.test.tsFile · 0.80

Calls 1

fromAngleMethod · 0.80

Tested by

no test coverage detected