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

Object Safety§

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§