Geom.isEpsilon()
Description
Returns true
, if the absolute value of arg
is less than or equal to eps
.
Syntax
JSGeom.isEpsilon(arg: Number, eps: Number = Geom.EPSILON) -> Boolean
Parameters
Parameter |
Type |
Default Value |
Mandatory |
Description |
arg |
Number |
— |
 |
The number being processed. |
eps |
Number |
Geom.EPSILON |
❌ |
Comparison error tolerance for floating point numbers. |
Return value
Type |
Description |
Boolean |
The result of the operation. |
Example
JS |
---|
| let b1 = Geom.isEpsilon(0.0001)
console.info(b1) // output: false
let b2 = Geom.isEpsilon(1e-8, Geom.EPSILON)
console.info(b2) // output: true
|
Last update: 14 August 2025, 18:47