Trigonometry.sineEquation()
Compute a classic sine equation of type amplitude * sine( period + shiftX ) + shiftY
Parameters
Name | Type | Description | |
---|---|---|---|
1 | amplitude | number | |
2 | period | number | |
3 | shiftX | number | |
4 | shiftY | number |
Return value
number
the result of the equation
Usage
import {Trigonometry} from '@lcluber/type6js';
let sine = Trigonometry.sineEquation(4,2,1,1);