MCPcopy Create free account
hub / github.com/aardappel/treesheets / fastfloor

Function fastfloor

lobster/src/simplex.cpp:14–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12*/
13
14int fastfloor( const float x ) { return x > 0 ? (int) x : (int) x - 1; }
15
16float dot( const int* g, const float x, const float y ) {
17 return g[0]*x + g[1]*y;

Callers 1

SimplexRawNoiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected