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§
Sourcetype Spherical: CoordinatePrimitive
type Spherical: CoordinatePrimitive
Spherical result type.
Required Methods§
Sourcefn to_spherical(&self) -> Self::Spherical
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".