pub fn spherical_direction(sin_theta: Float, cos_theta: Float, phi: Float) -> Vector3f {
    Vector3f {
        x: sin_theta * phi.cos(),
        y: sin_theta * phi.sin(),
        z: cos_theta,
    }
}
/// Calculate appropriate direction vector from two angles.
Calculate appropriate direction vector from two angles.
Calculate appropriate direction vector from two angles .
pub fn spherical_direction(sin_theta: Float, cos_theta: Float, phi: Float) -> Vector3f {
    Vector3f {
        x: sin_theta * phi.cos(),
        y: sin_theta * phi.sin(),
        z: cos_theta,
    }
}
pub fn spherical_direction ( sin_theta : Float , cos_theta : Float , phi : Float ) -> Vector3f { Vector3f { x : sin_theta * phi . cos ( ) , y : sin_theta * phi . sin ( ) , z : cos_theta , } }
Calculate appropriate direction vector from two angles.
Calculate appropriate direction vector from two angles .
sin_theta
Float
cos_theta
Float
phi
Float