MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / normalizeRadian

Method normalizeRadian

src/common/overlay/levelRenderer/Area.js:90–96  ·  view source on GitHub ↗

* @function LevelRenderer.Tool.Areal.prototype.normalizeRadian * @description 弧度标准化函数。 * @param {number} angle - 弧度值。 * @returns {number} 标准化后的弧度值。

(angle)

Source from the content-addressed store, hash-verified

88 * @returns {number} 标准化后的弧度值。
89 */
90 normalizeRadian(angle) {
91 angle %= this.PI2;
92 if (angle < 0) {
93 angle += this.PI2;
94 }
95 return angle;
96 }
97
98 /**
99 * @function LevelRenderer.Tool.Areal.prototype.isInside

Callers 3

isInsideArcStrokeMethod · 0.95
windingArcMethod · 0.95
AreaSpec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected