toRad function Utils

double toRad(
  1. double deg
)

The toRad function converts degrees to radians.

Implementation

double toRad(double deg) => deg * pi / 180.0;