glsl-gcd

1.0.1 • Public • Published

glsl-gcd

Glsl implementation of the Euclid's algorithm for the calculation of the greatest common divisor.

Install

npm install glsl-gcd

Usage

#pragma glslify: gcd require(glsl-gcd) 
 
float d = gcd(9., 6.); // return 3. 

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i glsl-gcd

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.03 kB

    Total Files

    6

    Last publish

    Collaborators

    • riccardoscalco