NanoByte.Common  2.9.0
NanoByte.Common.MathUtils Class Reference

Provides math-related utility functions. More...

Static Public Member Functions

static bool EqualsTolerance (this float a, float b, float tolerance=0.00001f)
 Compares two floating-point values for equality, allowing for a certain tolerance . More...
 
static bool EqualsTolerance (this double a, double b, double tolerance=0.00001)
 Compares two floating-point values for equality, allowing for a certain tolerance . More...
 
static Size Multiply (this Size size, float factor)
 Multiplies a size with a linear factor . More...
 

Detailed Description

Provides math-related utility functions.

Member Function Documentation

◆ EqualsTolerance() [1/2]

static bool NanoByte.Common.MathUtils.EqualsTolerance ( this double  a,
double  b,
double  tolerance = 0.00001 
)
static

Compares two floating-point values for equality, allowing for a certain tolerance .

◆ EqualsTolerance() [2/2]

static bool NanoByte.Common.MathUtils.EqualsTolerance ( this float  a,
float  b,
float  tolerance = 0.00001f 
)
static

Compares two floating-point values for equality, allowing for a certain tolerance .

◆ Multiply()

static Size NanoByte.Common.MathUtils.Multiply ( this Size  size,
float  factor 
)
static

Multiplies a size with a linear factor .


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