almostEqual

Compares to values and returns true if the difference is epsilon or smaller.

  1. bool almostEqual(T a, S b, float epsilon)
  2. bool almostEqual(T a, S b, float epsilon)
    @safe pure nothrow
    bool
    almostEqual
    (
    T
    S
    )
    (
    T a
    ,
    S b
    ,
    float epsilon = 0.000001f
    )
    if (
    isVector!T &&
    &&
    T.dimension == S.dimension
    )
  3. bool almostEqual(T a, T b, float epsilon)

Meta