https://github.com/riccardoscalco/glsl-gcd
Glsl implementation of the Euclid's algorithm for the calculation of the greatest common divisor.
https://github.com/riccardoscalco/glsl-gcd
gcd glsl glslify hcf math webgl
Last synced: 29 days ago
JSON representation
Glsl implementation of the Euclid's algorithm for the calculation of the greatest common divisor.
- Host: GitHub
- URL: https://github.com/riccardoscalco/glsl-gcd
- Owner: riccardoscalco
- License: mit
- Created: 2019-05-30T16:49:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-23T14:15:52.000Z (about 3 years ago)
- Last Synced: 2025-03-16T09:42:15.990Z (about 1 month ago)
- Topics: gcd, glsl, glslify, hcf, math, webgl
- Language: GLSL
- Size: 88.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# glsl-gcd
Glsl implementation of the Euclid's algorithm for the calculation of the greatest common divisor.
## Install
```sh
npm install glsl-gcd
```## Usage
```glsl
#pragma glslify: gcd = require(glsl-gcd)float d = gcd(9., 6.); // return 3.
```