Trigonometry.sineEquation()

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

Parameters

NameTypeDescription
1amplitudenumber
2periodnumber
3shiftXnumber
4shiftYnumber

Return value

number

the result of the equation

Usage

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

let sine = Trigonometry.sineEquation(4,2,1,1);