pub struct WallSegment3D {
pub x1: f64,
pub y1: f64,
pub z1: f64,
pub x2: f64,
pub y2: f64,
pub z2: f64,
}Expand description
A 3D wall segment defined by two endpoints.
The closest point on the segment to a query position is computed analytically via parametric projection.
Fields§
§x1: f64Start point x.
y1: f64Start point y.
z1: f64Start point z.
x2: f64End point x.
y2: f64End point y.
z2: f64End point z.
Implementations§
Trait Implementations§
Source§impl Clone for WallSegment3D
impl Clone for WallSegment3D
Source§fn clone(&self) -> WallSegment3D
fn clone(&self) -> WallSegment3D
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 WallSegment3D
impl Debug for WallSegment3D
Source§impl PartialEq for WallSegment3D
impl PartialEq for WallSegment3D
impl Copy for WallSegment3D
impl StructuralPartialEq for WallSegment3D
Auto Trait Implementations§
impl Freeze for WallSegment3D
impl RefUnwindSafe for WallSegment3D
impl Send for WallSegment3D
impl Sync for WallSegment3D
impl Unpin for WallSegment3D
impl UnsafeUnpin for WallSegment3D
impl UnwindSafe for WallSegment3D
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