[]
        
(Showing Draft Content)

CSJ2K.j2k.util.MathUtil

MathUtil Class

This class contains a collection of utility methods fro mathematical operations. All methods are static.

Inheritance
MathUtil
Namespace: CSJ2K.j2k.util
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public class MathUtil

Constructors

Name Description
MathUtil()

Methods

Name Description
gcd(int, int)

Method that calculates the Greatest Common Divisor (GCD) of two positive integer numbers.

gcd(int[])

Method that calculates the Greatest Common Divisor (GCD) of several positive integer numbers.

lcm(int, int)

Method that calculates the Least Common Multiple (LCM) of two strictly positive integer numbers.

lcm(int[])

Method that calculates the Least Common Multiple (LCM) of several positive integer numbers.

log2(int)

Method that calculates the floor of the log, base 2, of 'x'. The calculation is performed in integer arithmetic, therefore, it is exact.