PolarScale
struct · ferroui-livecharts · v0.5.0
struct PolarScale
One resolved pair of polar axes. All distances use FerroUI logical pixels.
Members
centerangleradiusinitial_rotationget_angleto_pixelsto_pixels_with_angle_in_degreesto_chart_values
center
center: ferroui_base::Point
angle
angle: crate::axis::AxisScale
Maps angular values to degrees, including rotation and inversion.
radius
radius: crate::axis::AxisScale
Maps radial values to pixel distances from center.
initial_rotation
initial_rotation: f64
get_angle
fn get_angle(self: Self, angle: f64) -> f64
to_pixels
fn to_pixels(self: Self, angle: f64, radius: f64) -> Point
to_pixels_with_angle_in_degrees
fn to_pixels_with_angle_in_degrees(self: Self, angle: f64, radius: f64) -> Point
to_chart_values
fn to_chart_values(self: Self, point: Point) -> Point
Angular values are normalized to a revolution starting at InitialRotation.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.