FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LandData

    struct · ferroui-livecharts · v0.5.0

    struct LandData
    

    One ring of a land (LandData): its coordinates, longitude in x and latitude in y, and their bounds. Every ring of every polygon of a feature is a land shape of its own, as in the source, which fills the inner rings of a polygon too.

    View source

    Members

    coordinates

    coordinates: Vec<ferroui_base::Point>
    

    Source

    max_bounds

    max_bounds: [f64; 2]
    

    The maximum longitude and latitude.

    Source

    min_bounds

    min_bounds: [f64; 2]
    

    The minimum longitude and latitude.

    Source

    bounds_hypotenuse

    bounds_hypotenuse: f64
    

    The diagonal of the bounds, which orders the rings of a land.

    Source

    new

    fn new(coordinates: Vec<Point>) -> Self
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.