cos
cos(
angle
):number
Defined in: src/util/misc/cos.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
the angle
Returns
number
the cosin value for angle.