palette::num

Trait 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).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Hypot for f32

Source§

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

Source§

impl Hypot for f64

Source§

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

Implementors§