pub struct SphereShape {
pub radius: f32,
}Fields§
§radius: f32Implementations§
Source§impl SphereShape
impl SphereShape
pub fn new(radius: f32) -> Self
pub fn set_radius(&mut self, radius: f32)
pub fn get_radius(&self) -> f32
pub fn get_farthest_point(&self, direction: Vec3) -> Vec3
Trait Implementations§
Source§impl CircumRadius for SphereShape
impl CircumRadius for SphereShape
fn circumradius(&self) -> f32
Source§impl Clone for SphereShape
impl Clone for SphereShape
Source§fn clone(&self) -> SphereShape
fn clone(&self) -> SphereShape
Returns a duplicate 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 SphereShape
impl Debug for SphereShape
Source§impl Default for SphereShape
impl Default for SphereShape
Source§impl Visit for SphereShape
impl Visit for SphereShape
Auto Trait Implementations§
impl Freeze for SphereShape
impl RefUnwindSafe for SphereShape
impl Send for SphereShape
impl Sync for SphereShape
impl Unpin for SphereShape
impl UnsafeUnpin for SphereShape
impl UnwindSafe for SphereShape
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