GeoMapMeasurement
struct · ferroui-livecharts · v0.5.0
struct GeoMapMeasurement
A measured map: the scene, the projector and viewport it was drawn with, and its lands.
Members
scene
scene: Scene
projector
projector: crate::geo::MapProjector
viewport
viewport: MapViewport
viewport_center
viewport_center: ferroui_base::Point
The centre of the control, about which the viewport zooms.
lands
lands: Vec<GeoLand>
project
fn project(self: &Self, longitude: f64, latitude: f64) -> Option<Point>
The screen position of a coordinate (GeoMapChart.Project), None on the far side of a
globe.
unproject
fn unproject(self: &Self, point: Point) -> Option<(f64, f64)>
The coordinate of a screen position (GeoMapChart.Unproject), None outside the disc of
a globe.
land
fn land(self: &Self, id: PointId) -> Option<&GeoLand>
The land of a hit region.
find_land_at
fn find_land_at(self: &Self, point: Point) -> Option<&GeoLand>
The first land whose shape contains the screen position (FindLandAt).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneDebugStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.