webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Static Public Member Functions | List of all members
google::protobuf::MathUtil Class Reference

#include <mathutil.h>

Static Public Member Functions

template<typename T >
static T Sign (T value)
 
template<typename T >
static bool AlmostEquals (T a, T b)
 
template<typename T >
static T Max (const T x, const T y)
 
template<typename T >
static T Abs (const T x)
 
template<typename T >
static MathLimits< T >::UnsignedType AbsDiff (const T x, const T y)
 
template<typename T >
static bool WithinFractionOrMargin (const T x, const T y, const T fraction, const T margin)
 

Member Function Documentation

◆ Abs()

template<typename T >
static T google::protobuf::MathUtil::Abs ( const T  x)
inlinestatic

◆ AbsDiff()

template<typename T >
static MathLimits<T>::UnsignedType google::protobuf::MathUtil::AbsDiff ( const T  x,
const T  y 
)
inlinestatic

◆ AlmostEquals()

template<typename T >
static bool google::protobuf::MathUtil::AlmostEquals ( T  a,
T  b 
)
inlinestatic

◆ Max()

template<typename T >
static T google::protobuf::MathUtil::Max ( const T  x,
const T  y 
)
inlinestatic

◆ Sign()

template<typename T >
static T google::protobuf::MathUtil::Sign ( T  value)
inlinestatic

◆ WithinFractionOrMargin()

template<typename T >
bool google::protobuf::MathUtil::WithinFractionOrMargin ( const T  x,
const T  y,
const T  fraction,
const T  margin 
)
static

The documentation for this class was generated from the following file: