Trait 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: Self) -> Self

source§

impl Hypot for f64

source§

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

source§

impl Hypot for f32x4

source§

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

source§

impl Hypot for f32x8

source§

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

source§

impl Hypot for f64x2

source§

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

source§

impl Hypot for f64x4

source§

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

Implementors§