# PolarScale

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/polar_chart_engine/struct-polarscale/

**struct** · [`ferroui-livecharts`](/docs/0.5.0/api/ferroui-livecharts/) · v0.5.0

```rust
struct PolarScale
```

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

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/polar_chart_engine.rs#L46)

## Members

- [`center`](#struct_field-center)
- [`angle`](#struct_field-angle)
- [`radius`](#struct_field-radius)
- [`initial_rotation`](#struct_field-initial_rotation)
- [`get_angle`](#function-get_angle)
- [`to_pixels`](#function-to_pixels)
- [`to_pixels_with_angle_in_degrees`](#function-to_pixels_with_angle_in_degrees)
- [`to_chart_values`](#function-to_chart_values)

<a id="struct_field-center"></a>

### center

```rust
center: ferroui_base::Point
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/polar_chart_engine.rs#L47)

<a id="struct_field-angle"></a>

### angle

```rust
angle: crate::axis::AxisScale
```

Maps angular values to degrees, including rotation and inversion.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/polar_chart_engine.rs#L49)

<a id="struct_field-radius"></a>

### radius

```rust
radius: crate::axis::AxisScale
```

Maps radial values to pixel distances from `center`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/polar_chart_engine.rs#L51)

<a id="struct_field-initial_rotation"></a>

### initial_rotation

```rust
initial_rotation: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/polar_chart_engine.rs#L52)

<a id="function-get_angle"></a>

### get_angle

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/polar_chart_engine.rs#L55)

<a id="function-to_pixels"></a>

### to_pixels

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/polar_chart_engine.rs#L58)

<a id="function-to_pixels_with_angle_in_degrees"></a>

### to_pixels_with_angle_in_degrees

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/polar_chart_engine.rs#L61)

<a id="function-to_chart_values"></a>

### to_chart_values

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

Angular values are normalized to a revolution starting at InitialRotation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/polar_chart_engine.rs#L65)

## 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`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
