Skip to content

Commit

Permalink
cargo clippy --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
-karlos- committed Dec 15, 2023
1 parent 9efc034 commit e394278
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/geoview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl GeoView {
transform.look_at(subgrid, Vec3::Z);
// Next rotate to up and to west or east
// bad *transform = *transform * Transform::from_rotation(rotation);
transform.rotation = transform.rotation * rotation;
transform.rotation *= rotation;
}

// Todo: This does not work yet. @Oli?
Expand All @@ -129,22 +129,22 @@ impl GeoView {
let lat = g.lat;
let lon = g.lon;
info!("lat/lon: {:?}/{:?}", lat, lon);
let height = translation.length() as f32; // - crate::geopos::EARTH_RADIUS; ??? // f32 = 6_378_000.
let height = translation.length(); // - crate::geopos::EARTH_RADIUS; ??? // f32 = 6_378_000.
info!("height: {:?}", height); // 897.622 ???

let geo_pos = GeoPos {
lat: lat as f32,
lon: lon as f32,
lat,
lon,
};
let view = Self {

Self {
geo_pos,
height,
dir: 0.,
view: 0.,
radius: 6.,
fov: 7.,
};
view
}
}
}

Expand Down

0 comments on commit e394278

Please sign in to comment.