pub struct CircleObstacle {
pub center: Vec2,
pub radius: f32,
}Expand description
A circular obstacle in the world.
Fields§
§center: Vec2§radius: f32Trait Implementations§
Source§impl Clone for CircleObstacle
impl Clone for CircleObstacle
Source§fn clone(&self) -> CircleObstacle
fn clone(&self) -> CircleObstacle
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 CircleObstacle
impl Debug for CircleObstacle
impl Copy for CircleObstacle
Auto Trait Implementations§
impl Freeze for CircleObstacle
impl RefUnwindSafe for CircleObstacle
impl Send for CircleObstacle
impl Sync for CircleObstacle
impl Unpin for CircleObstacle
impl UnsafeUnpin for CircleObstacle
impl UnwindSafe for CircleObstacle
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