Auburn / FastNoiseLite

Fast Portable Noise Library - C# C++ C Java HLSL GLSL JavaScript Rust Go
http://auburn.github.io/FastNoiseLite/
MIT License
2.79k stars 327 forks source link

Update FastNoiseLite.h #95

Closed MGRussell closed 2 years ago

MGRussell commented 2 years ago

A simple change that just added constness to all the non-mutating functions. Handy because it helps somewhat clarify the API, allows references to be passed around that can generate noise, but not mutate state, and also some hand-wavy thing about compilers liking constness when possible.

Auburn commented 2 years ago

Thanks, didn't realise this wasn't the case already, not sure how it was overlooked!