v0.14.0
Static Public Member Functions | Static Public Attributes | List of all members
HenckyOps::isEq Struct Reference

#include <tutorials/vec-2/src/HenckyOps.hpp>

Collaboration diagram for HenckyOps::isEq:
[legend]

Static Public Member Functions

static auto check (const double &a, const double &b)
 

Static Public Attributes

static double absMax = 1
 

Detailed Description

Definition at line 19 of file HenckyOps.hpp.

Member Function Documentation

◆ check()

static auto HenckyOps::isEq::check ( const double a,
const double b 
)
inlinestatic
Examples
HenckyOps.hpp.

Definition at line 20 of file HenckyOps.hpp.

20  {
21  return std::abs(a - b) / absMax < eps;
22  }

Member Data Documentation

◆ absMax

double HenckyOps::isEq::absMax = 1
static
Examples
HenckyOps.hpp.

Definition at line 23 of file HenckyOps.hpp.


The documentation for this struct was generated from the following file:
HenckyOps::isEq::absMax
static double absMax
Definition: HenckyOps.hpp:23
a
constexpr double a
Definition: approx_sphere.cpp:30
HenckyOps::eps
constexpr double eps
Definition: HenckyOps.hpp:13