Convert an angle to radians.
angle
Formula taken from this link.
double angleToRad(final double angle) => angle * pi / 180.0;