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

Method isInsideSector

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

* @function LevelRenderer.Tool.Areal.prototype.isInsideSector * @description 图形 Sector 是否包含鼠标位置, true表示坐标处在图形内。 * @returns {boolean} 图形是否包含鼠标位置, true表示坐标处在图形内。

(cx, cy, r0, r, startAngle, endAngle, anticlockwise, x, y)

Source from the content-addressed store, hash-verified

629 * @returns {boolean} 图形是否包含鼠标位置, true表示坐标处在图形内。
630 */
631 isInsideSector(cx, cy, r0, r, startAngle, endAngle, anticlockwise, x, y) {
632 return this.isInsideArcStroke(cx, cy, (r0 + r) / 2, startAngle, endAngle, anticlockwise, r - r0, x, y);
633 }
634
635 /**
636 * @function LevelRenderer.Tool.Areal.prototype.isInsidePolygon

Callers 1

_mathMethodMethod · 0.95

Calls 1

isInsideArcStrokeMethod · 0.95

Tested by

no test coverage detected