Skip to content

Commit

Permalink
neo
Browse files Browse the repository at this point in the history
  • Loading branch information
p4ken committed Jun 30, 2024
1 parent 82d240d commit 8d4f50c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/neo2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ impl LatLon {
pub fn in_tokyo(self) -> Tokyo {
Tokyo::new(self)
}
pub fn in_jgd2000(self) -> Jgd2000 {
todo!()
}
pub fn from_tokyo(self) -> Tokyo {
self.in_tokyo()
}
Expand Down Expand Up @@ -148,6 +151,8 @@ mod tests {

// LatLon じゃなくなり LatLon に戻す...難解
let LatLon(lat, lon) = LatLon(1., 2.).in_tokyo().to_jgd2000().degrees();
// 変換できたと勘違い!
let LatLon(lat, lon) = LatLon(1., 2.).in_jgd2000().degrees();
// let LatLon(lat, lon) = LatLon(1., 2.).from_tokyo().to_jgd2000().to_degrees();
// let LatLon(lat, lon) = LatLon(1., 2.).transform_from_tokyo().to_jgd2000().degrees();

Expand Down

0 comments on commit 8d4f50c

Please sign in to comment.