MCPcopy
hub / github.com/KilledByAPixel/LittleJS / smoothStep

Function smoothStep

src/engineMath.js:191–191  ·  view source on GitHub ↗

Applies smoothstep function to the percentage value * @param {number} percent * @return {number} * @memberof Math

(percent)

Source from the content-addressed store, hash-verified

189 * @return {number}
190 * @memberof Math */
191function smoothStep(percent) { return percent * percent * (3 - 2 * percent); }
192
193/** Checks if the value passed in is a power of two
194 * @param {number} value

Callers 3

math.test.mjsFile · 0.90
noise1DFunction · 0.85
noise2DFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected