FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PolarScale

    struct · ferroui-livecharts · v0.5.0

    struct PolarScale
    

    One resolved pair of polar axes. All distances use FerroUI logical pixels.

    View source

    Members

    center

    center: ferroui_base::Point
    

    Source

    angle

    angle: crate::axis::AxisScale
    

    Maps angular values to degrees, including rotation and inversion.

    Source

    radius

    radius: crate::axis::AxisScale
    

    Maps radial values to pixel distances from center.

    Source

    initial_rotation

    initial_rotation: f64
    

    Source

    get_angle

    fn get_angle(self: Self, angle: f64) -> f64
    

    Source

    to_pixels

    fn to_pixels(self: Self, angle: f64, radius: f64) -> Point
    

    Source

    to_pixels_with_angle_in_degrees

    fn to_pixels_with_angle_in_degrees(self: Self, angle: f64, radius: f64) -> Point
    

    Source

    to_chart_values

    fn to_chart_values(self: Self, point: Point) -> Point
    

    Angular values are normalized to a revolution starting at InitialRotation.

    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
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq

    Availability

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