# shortest_rotation

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/geo_map_chart_engine/function-shortest_rotation/

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

```rust
fn shortest_rotation(from: f64, to: f64) -> f64
```

The longitude to rotate a globe to from `from`, the short way round (`RotateTo`): a
difference of more than 180 degrees goes the other way.

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

## Availability

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