Struct ambient_math::SphericalCoords
source · pub struct SphericalCoords {
pub theta: f32,
pub phi: f32,
pub radius: f32,
}
Fields§
§theta: f32
§phi: f32
§radius: f32
Implementations§
Trait Implementations§
source§impl Clone for SphericalCoords
impl Clone for SphericalCoords
source§fn clone(&self) -> SphericalCoords
fn clone(&self) -> SphericalCoords
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SphericalCoords
impl Debug for SphericalCoords
source§impl Default for SphericalCoords
impl Default for SphericalCoords
source§impl From<SphericalCoords> for Vec3
impl From<SphericalCoords> for Vec3
source§fn from(coords: SphericalCoords) -> Vec3
fn from(coords: SphericalCoords) -> Vec3
Converts to this type from the input type.
impl Copy for SphericalCoords
Auto Trait Implementations§
impl RefUnwindSafe for SphericalCoords
impl Send for SphericalCoords
impl Sync for SphericalCoords
impl Unpin for SphericalCoords
impl UnwindSafe for SphericalCoords
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