Trigonometry.cosineEquation()
Compute a classic cosine equation of type amplitude * cosine( 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 cosine = Trigonometry.cosineEquation(4,2,1,1);