fn from_spherical(radius: f64, inclination: f64, azimuth: f64) -> WorldVec {
        vec3::Vec3(
            radius * inclination.sin() * azimuth.cos(),
            radius * inclination.sin() * azimuth.sin(),
            radius * inclination.cos(),
        )
    }
/// Create a vec3 from spherical coordinates. Note that the radius, inclination and azimuth are all
/// in radians. Inclination is from 0 to pi, azimuth is from 0 to 2 pi.
Create a vec3 from spherical coordinates. Note that the radius, inclination and azimuth are all
in radians. Inclination is from 0 to pi, azimuth is from 0 to 2 pi.
Create a vec3 from spherical coordinates . Note that the radius inclination and azimuth are all in radians . Inclination is from 0 to pi azimuth is from 0 to 2 pi .
fn from_spherical(radius: f64, inclination: f64, azimuth: f64) -> WorldVec {
        vec3::Vec3(
            radius * inclination.sin() * azimuth.cos(),
            radius * inclination.sin() * azimuth.sin(),
            radius * inclination.cos(),
        )
    }
fn from_spherical ( radius : f64 , inclination : f64 , azimuth : f64 ) -> WorldVec { vec3 :: Vec3 ( radius * inclination . sin ( ) * azimuth . cos ( ) , radius * inclination . sin ( ) * azimuth . sin ( ) , radius * inclination . cos ( ) , ) }
Create a vec3 from spherical coordinates.
Create a vec3 from spherical coordinates .
radius
f64
inclination
f64
azimuth
f64
radius
f64
inclination
f64
azimuth
f64