Skip to main content

ToSpherical

Trait ToSpherical 

Source
pub trait ToSpherical {
    type Spherical: CoordinatePrimitive;

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

Converts a value into a spherical representation.

Required Associated Types§

Source

type Spherical: CoordinatePrimitive

Spherical result type.

Required Methods§

Source

fn to_spherical(&self) -> Self::Spherical

Returns the spherical representation of self.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§