pub struct EdgeShape { /* private fields */ }
Implementations§
source§impl EdgeShape
impl EdgeShape
pub fn new() -> Self
pub fn new_with(v1: &Vec2, v2: &Vec2) -> Self
pub fn set(&mut self, v1: &Vec2, v2: &Vec2)
pub fn v1(&self) -> Vec2
pub fn set_v1(&mut self, v1: Vec2)
pub fn v2(&self) -> Vec2
pub fn set_v2(&mut self, v2: Vec2)
pub fn v0(&self) -> Option<Vec2>
pub fn set_v0(&mut self, v0: Option<Vec2>)
pub fn v3(&self) -> Option<Vec2>
pub fn set_v3(&mut self, v3: Option<Vec2>)
Trait Implementations§
source§impl Shape for EdgeShape
impl Shape for EdgeShape
fn shape_type(&self) -> ShapeType
fn child_count(&self) -> i32
fn test_point(&self, xf: &Transform, p: &Vec2) -> bool
fn ray_cast( &self, input: &RayCastInput, transform: &Transform, child_index: i32 ) -> RayCastOutput
fn compute_aabb(&self, xf: &Transform, child_index: i32) -> AABB
fn compute_mass(&self, density: f32) -> MassData
Auto Trait Implementations§
impl RefUnwindSafe for EdgeShape
impl !Send for EdgeShape
impl !Sync for EdgeShape
impl Unpin for EdgeShape
impl UnwindSafe for EdgeShape
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