pub struct CircleShape { /* private fields */ }
Implementations§
source§impl CircleShape
impl CircleShape
pub fn new() -> Self
pub fn new_with(position: Vec2, radius: f32) -> Self
pub fn support(&self, dir: &Vec2) -> i32
pub fn support_vertex<'a>(&'a self, dir: &Vec2) -> &'a Vec2
pub fn vertex_count(&self) -> i32
pub fn vertex<'a>(&'a self, index: i32) -> &'a Vec2
pub fn radius(&self) -> f32
pub fn set_radius(&mut self, radius: f32)
pub fn position(&self) -> Vec2
pub fn set_position(&mut self, pos: Vec2)
Trait Implementations§
source§impl Drop for CircleShape
impl Drop for CircleShape
source§impl Shape for CircleShape
impl Shape for CircleShape
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 CircleShape
impl !Send for CircleShape
impl !Sync for CircleShape
impl Unpin for CircleShape
impl UnwindSafe for CircleShape
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