unit 1.0.3 copy "unit: ^1.0.3" to clipboard
unit: ^1.0.3 copied to clipboard

Three types: Angle, HourAngle, and Time, useful in astronomy applications.

example/unit_example.dart

import 'dart:math' as math;

import 'package:unit/unit.dart';

void main() {
  var halfCircle = Angle(math.pi);
  var rightAngle = Angle.fromDeg(90);

  print('This is 270 degrees: ${(halfCircle + rightAngle).deg}');
}
1
likes
40
pub points
19%
popularity

Publisher

unverified uploader

Three types: Angle, HourAngle, and Time, useful in astronomy applications.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

More

Packages that depend on unit