Skip to content

Commit

Permalink
Move class to its file.
Browse files Browse the repository at this point in the history
  • Loading branch information
xclud committed Feb 6, 2024
1 parent fac0e89 commit 9605299
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
1 change: 1 addition & 0 deletions lib/latlng.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ part 'src/planet.dart';
part 'src/ecef.dart';
part 'src/eci.dart';
part 'src/topocentric.dart';
part 'src/look_angle.dart';
part 'src/julian.dart';

part 'src/geojson/feature.dart';
Expand Down
20 changes: 20 additions & 0 deletions lib/src/look_angle.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
part of '../latlng.dart';

/// Represents a look angle.
class LookAngle {
/// Constructor.
const LookAngle({
required this.azimuth,
required this.elevation,
required this.range,
});

/// Azimuth.
final double azimuth;

/// Elevation.
final double elevation;

/// Distance.
final double range;
}
19 changes: 0 additions & 19 deletions lib/src/topocentric.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,3 @@ class Topocentric {
return LookAngle(azimuth: azimuth, elevation: elevation, range: range);
}
}

/// Represents a look angle.
class LookAngle {
/// Constructor.
const LookAngle({
required this.azimuth,
required this.elevation,
required this.range,
});

/// Azimuth.
final double azimuth;

/// Elevation.
final double elevation;

/// Distance.
final double range;
}

0 comments on commit 9605299

Please sign in to comment.