pub struct Spherical {
pub radius: f32,
pub phi: f32,
pub theta: f32,
}Expand description
Spherical coordinates using Y as the polar axis.
Fields§
§radius: f32Radius from origin.
phi: f32Polar angle from positive Y.
theta: f32Azimuth angle in the XZ plane.
Implementations§
Trait Implementations§
impl Copy for Spherical
impl StructuralPartialEq for Spherical
Auto Trait Implementations§
impl Freeze for Spherical
impl RefUnwindSafe for Spherical
impl Send for Spherical
impl Sync for Spherical
impl Unpin for Spherical
impl UnsafeUnpin for Spherical
impl UnwindSafe for Spherical
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more