Skip to main content

ToPolar

Trait ToPolar 

Source
pub trait ToPolar {
    type Polar: CoordinatePrimitive;

    // Required method
    fn to_polar(&self) -> Self::Polar;
}
Expand description

Converts a value into a polar representation.

Required Associated Types§

Source

type Polar: CoordinatePrimitive

Polar result type.

Required Methods§

Source

fn to_polar(&self) -> Self::Polar

Returns the polar representation of self.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§