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

Method isRight

src/common/util/GeometryAnalysis.js:356–359  ·  view source on GitHub ↗

* @function GeometryAnalysis.prototype.isRight * @version 11.2.0 * @description 判断点是否在线的右侧。 * @param {number} x - 点 X 坐标。 * @param {number} y - 点 Y 坐标。 * @param {number} startX - 线起点 X 坐标。 * @param {number} startY - 线起点 Y 坐标。 * @param {number} endX - 线终点 X 坐标。

(x, y, startX, startY, endX, endY)

Source from the content-addressed store, hash-verified

354 * @returns {boolean} 点是否在线的右侧。
355 */
356 isRight(x, y, startX, startY, endX, endY) {
357 const result = this.module._UGCWasm_Geometrist_IsRight(x, y, startX, startY, endX, endY);
358 return result === 1;
359 }
360
361 /**
362 * @function GeometryAnalysis.prototype.isLeft

Calls

no outgoing calls

Tested by

no test coverage detected