Trigonometry.cosineEquation()

Compute a classic cosine equation of type amplitude * cosine( period + shiftX ) + shiftY

Parameters

NameTypeDescription
1amplitudenumber
2periodnumber
3shiftXnumber
4shiftYnumber

Return value

number

the result of the equation

Usage

import {Trigonometry} from '@lcluber/type6js';

let cosine = Trigonometry.cosineEquation(4,2,1,1);