Skip to content

sin

sin(angle): number

Defined in: src/util/misc/sin.ts:11

Calculate the cos of an angle, avoiding returning floats for known results This function is here just to avoid getting 0.999999999999999 when dealing with numbers that are really 1 or 0.

Parameters

angle

TRadian

the angle

Returns

number

the sin value for angle.