pub struct ShapeProxy { /* private fields */ }Expand description
Convex point cloud proxy used by distance, overlap, and shape-cast helpers.
Implementations§
Source§impl ShapeProxy
impl ShapeProxy
Sourcepub fn new(points: impl Into<Vec<Vec3>>, radius: f32) -> Result<Self>
pub fn new(points: impl Into<Vec<Vec3>>, radius: f32) -> Result<Self>
Creates a proxy from support points and a non-negative radius.
Sourcepub fn capsule(
center1: impl Into<Vec3>,
center2: impl Into<Vec3>,
radius: f32,
) -> Result<Self>
pub fn capsule( center1: impl Into<Vec3>, center2: impl Into<Vec3>, radius: f32, ) -> Result<Self>
Creates a capsule proxy from two centerline points and a radius.
Trait Implementations§
Source§impl Clone for ShapeProxy
impl Clone for ShapeProxy
Source§fn clone(&self) -> ShapeProxy
fn clone(&self) -> ShapeProxy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShapeProxy
impl Debug for ShapeProxy
Source§impl PartialEq for ShapeProxy
impl PartialEq for ShapeProxy
Source§fn eq(&self, other: &ShapeProxy) -> bool
fn eq(&self, other: &ShapeProxy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShapeProxy
Auto Trait Implementations§
impl Freeze for ShapeProxy
impl RefUnwindSafe for ShapeProxy
impl Send for ShapeProxy
impl Sync for ShapeProxy
impl Unpin for ShapeProxy
impl UnsafeUnpin for ShapeProxy
impl UnwindSafe for ShapeProxy
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