europas 0.0.3

Europa celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
#[test]
fn height_profile_min_max() {
    let hp = europas::surface::heightmaps::HeightProfile::new(vec![10.0, 20.0, 5.0]);
    let (min, max) = hp.min_max();
    assert!((min - 5.0).abs() < 1e-10);
    assert!((max - 20.0).abs() < 1e-10);
}

#[test]
fn roughness_index_positive() {
    let hp = europas::surface::heightmaps::HeightProfile::new(vec![10.0, 20.0, 5.0, 25.0]);
    assert!(hp.roughness_index() > 0.0);
}

#[test]
fn great_circle_distance_nonzero() {
    let a = europas::surface::mapping::EuropaCoord::new(0.0, 0.0, 0.0);
    let b = europas::surface::mapping::EuropaCoord::new(10.0, 10.0, 0.0);
    assert!(europas::surface::mapping::great_circle_distance_km(a, b) > 0.0);
}

#[test]
fn antipode_inverts() {
    let a = europas::surface::mapping::EuropaCoord::new(15.0, 30.0, 100.0);
    let b = europas::surface::mapping::antipode(a);
    assert!((b.latitude_deg + 15.0).abs() < 1e-10);
}

#[test]
fn zone_classification() {
    let z = europas::surface::zones::zone_from_lat_lon(-80.0, 0.0);
    assert_eq!(z.zone, europas::surface::zones::EuropaZone::ImpactSite);
}