[][src]Trait cdshealpix::Customf64

pub trait Customf64 {
    fn pow2(self) -> f64;
fn twice(self) -> f64;
fn half(self) -> f64;
fn div_eucl(self, rhs: f64) -> f64; }

Simple trait used to implements pow2, twice and half on f64.

Required methods

fn pow2(self) -> f64

fn twice(self) -> f64

fn half(self) -> f64

fn div_eucl(self, rhs: f64) -> f64

Loading content...

Implementations on Foreign Types

impl Customf64 for f64[src]

fn pow2(self) -> f64[src]

Returns x^2

fn twice(self) -> f64[src]

Returns 2 * x

fn half(self) -> f64[src]

Returns x / 2

fn div_eucl(self, rhs: f64) -> f64[src]

Duplicated code, because it is unstable so far.

Loading content...

Implementors

Loading content...