degToRad function

double degToRad(
  1. num deg
)

Convert degrees to radians.

Implementation

double degToRad(num deg) => deg * (math.pi / 180.0);