Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

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

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.
```