pub struct WallContact { /* private fields */ }Expand description
How one subject sits against an end wall.
Implementations§
Source§impl WallContact
impl WallContact
Sourcepub fn new(subject: ObjectId, gap: PlanLength, facing: PlanLength) -> Self
pub fn new(subject: ObjectId, gap: PlanLength, facing: PlanLength) -> Self
subject’s footprint lies gap from the wall segment in plan and
faces facing of its length.
Sourcepub fn gap(&self) -> &PlanLength
pub fn gap(&self) -> &PlanLength
The plan distance between the subject’s footprint and the wall segment: zero where they meet.
Sourcepub fn facing(&self) -> &PlanLength
pub fn facing(&self) -> &PlanLength
The length of the wall segment the subject’s footprint faces: the overlap of its projection onto the wall’s line with the segment. Zero for a subject beside the wall’s end, such as a window in a side wall next to the corner.
Trait Implementations§
Source§impl Clone for WallContact
impl Clone for WallContact
Source§impl Debug for WallContact
impl Debug for WallContact
Source§impl PartialEq for WallContact
impl PartialEq for WallContact
impl StructuralPartialEq for WallContact
Auto Trait Implementations§
impl Freeze for WallContact
impl RefUnwindSafe for WallContact
impl Send for WallContact
impl Sync for WallContact
impl Unpin for WallContact
impl UnsafeUnpin for WallContact
impl UnwindSafe for WallContact
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