linearly v0.32.0Docs


linearly v0.32.0 / scalar / sinwave

Function: sinwave()

sinwave(v, period): number

Returns a sine wave with the given period. The output ranges from 0 to 1, and y = 0 when x = 0.

Parameters

v: number

the input value

period: number = 1

the period of the wave

Returns

number

See

https://www.geogebra.org/calculator/d3grfqqeopen in new window

Defined in

src/scalar.ts:511open in new window