summaryrefslogtreecommitdiffstats
path: root/core/src/angle.rs
diff options
context:
space:
mode:
authorLibravatar Matthias Vogelgesang <matthias.vogelgesang@gmail.com>2023-09-09 12:24:47 +0200
committerLibravatar Matthias Vogelgesang <matthias.vogelgesang@gmail.com>2023-09-09 18:59:17 +0200
commit89d9f1d7d2202029028a487df1dd11b0665a7517 (patch)
treeff3f998798c9d0b1d334989d941c90b0b1012ee4 /core/src/angle.rs
parent89d9c45d25e9bf89e48858b135bc7a2d41c757a8 (diff)
downloadiced-89d9f1d7d2202029028a487df1dd11b0665a7517.tar.gz
iced-89d9f1d7d2202029028a487df1dd11b0665a7517.tar.bz2
iced-89d9f1d7d2202029028a487df1dd11b0665a7517.zip
Fix majority of unresolved documentation links
Diffstat (limited to 'core/src/angle.rs')
-rw-r--r--core/src/angle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/angle.rs b/core/src/angle.rs
index c8f3f013..102b69cf 100644
--- a/core/src/angle.rs
+++ b/core/src/angle.rs
@@ -55,7 +55,7 @@ impl num_traits::FromPrimitive for Radians {
}
impl Radians {
- /// Calculates the line in which the [`Angle`] intercepts the `bounds`.
+ /// Calculates the line in which the angle intercepts the `bounds`.
pub fn to_distance(&self, bounds: &Rectangle) -> (Point, Point) {
let angle = self.0 - FRAC_PI_2;
let r = Vector::new(f32::cos(angle), f32::sin(angle));