* @function LevelRenderer.Tool.Curve.prototype.isAroundZero * @description 判断一个值是否趋于0,判断参考值:1e-4。 * @param {number} val - 值。 * @returns {boolean} 值是否趋于0。
(val)
| 66 | * @returns {boolean} 值是否趋于0。 |
| 67 | */ |
| 68 | isAroundZero(val) { |
| 69 | return val > -this.EPSILON && val < this.EPSILON; |
| 70 | } |
| 71 | |
| 72 | |
| 73 | /** |
no outgoing calls
no test coverage detected