pub struct WallSegment {
pub x1: f64,
pub y1: f64,
pub x2: f64,
pub y2: f64,
}Expand description
A wall segment defined by two endpoints.
Wall segments are used for wall-repulsion force calculations. The closest point on the segment to the queried position is computed analytically.
Fields§
§x1: f64Start point x.
y1: f64Start point y.
x2: f64End point x.
y2: f64End point y.
Implementations§
Source§impl WallSegment
impl WallSegment
Trait Implementations§
Source§impl Clone for WallSegment
impl Clone for WallSegment
Source§fn clone(&self) -> WallSegment
fn clone(&self) -> WallSegment
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 WallSegment
impl Debug for WallSegment
Source§impl PartialEq for WallSegment
impl PartialEq for WallSegment
impl Copy for WallSegment
impl StructuralPartialEq for WallSegment
Auto Trait Implementations§
impl Freeze for WallSegment
impl RefUnwindSafe for WallSegment
impl Send for WallSegment
impl Sync for WallSegment
impl Unpin for WallSegment
impl UnsafeUnpin for WallSegment
impl UnwindSafe for WallSegment
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