NanoByte.Common 2.11.0
NanoByte.Common.MathUtils Class Reference

Provides math-related utility functions. More...

Static Public Member Functions

static int Modulo (this int value, int modulo)
 Calculates the mathematical modulo of a value.
 
static long Modulo (this long value, long modulo)
 Calculates the mathematical modulo of a value.
 
static bool EqualsTolerance (this float a, float b, float tolerance=0.00001f)
 Compares two floating-point values for equality, allowing for a certain tolerance .
 
static bool EqualsTolerance (this double a, double b, double tolerance=0.00001)
 Compares two floating-point values for equality, allowing for a certain tolerance .
 
static Size Multiply (this Size size, float factor)
 Multiplies a size with a linear factor .
 

Detailed Description

Provides math-related utility functions.


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