pub struct CapsuleShape { /* private fields */ }Implementations§
Source§impl CapsuleShape
impl CapsuleShape
pub fn new(radius: f32, height: f32, axis: Axis) -> Self
pub fn set_radius(&mut self, radius: f32)
pub fn get_radius(&self) -> f32
pub fn set_height(&mut self, height: f32)
pub fn get_height(&self) -> f32
pub fn set_axis(&mut self, axis: Axis)
pub fn get_axis(&self) -> Axis
pub fn get_cap_centers(&self) -> (Vec3, Vec3)
pub fn get_farthest_point(&self, direction: Vec3) -> Vec3
Trait Implementations§
Source§impl CircumRadius for CapsuleShape
impl CircumRadius for CapsuleShape
fn circumradius(&self) -> f32
Source§impl Clone for CapsuleShape
impl Clone for CapsuleShape
Source§fn clone(&self) -> CapsuleShape
fn clone(&self) -> CapsuleShape
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 CapsuleShape
impl Debug for CapsuleShape
Source§impl Default for CapsuleShape
impl Default for CapsuleShape
Source§impl Visit for CapsuleShape
impl Visit for CapsuleShape
Auto Trait Implementations§
impl Freeze for CapsuleShape
impl RefUnwindSafe for CapsuleShape
impl Send for CapsuleShape
impl Sync for CapsuleShape
impl Unpin for CapsuleShape
impl UnsafeUnpin for CapsuleShape
impl UnwindSafe for CapsuleShape
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