nc-photos/app/lib/math_util.dart
2022-08-20 19:11:10 +08:00

5 lines
132 B
Dart

import 'dart:math' as math;
double degToRad(num deg) => deg * (math.pi / 180);
double radToDeg(num rad) => rad * (180 / math.pi);