smcameron / open-simplex-noise-in-c

Port of Kurt Spencer's java implementation of open simplex noise to C -- Note: This is NOT Ken Perlin's Simplex noise algorithm.
The Unlicense
139 stars 19 forks source link

Marked osn_context as const in noise and extrapolate functions #12

Closed Shaidak closed 3 years ago

Shaidak commented 3 years ago

Hi,

To my understanding, the noise & extrapolate functions should not (and actually, do not) modify the provided "osn_context" pointer. I think it should be marked as const (in these cases) in order to make room for optimisations (especially when calling from C++ code in my case).

Best regards!