Trait cosmic::cosmic_theme::palette::num::Hypot

source ·
pub trait Hypot {
    // Required method
    fn hypot(self, other: Self) -> Self;
}
Expand description

Methods for calculating the lengths of a hypotenuse.

Required Methods§

source

fn hypot(self, other: Self) -> Self

Returns the length of the hypotenuse formed by self and other, i.e. sqrt(self * self + other * other).

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Hypot for f32

source§

fn hypot(self, other: f32) -> f32

source§

impl Hypot for f64

source§

fn hypot(self, other: f64) -> f64

Implementors§