pub struct WallPolygon3D {
pub floor: FloorId,
pub vertices: Vec<Vec2>,
}Expand description
A polyline wall that spans a single floor.
Fields§
§floor: FloorIdWhich floor this polygon belongs to.
vertices: Vec<Vec2>Vertices in 2-D floor coordinates, forming a closed loop if the first and last entries are equal.
Implementations§
Source§impl WallPolygon3D
impl WallPolygon3D
Sourcepub fn to_segments(&self) -> Vec<WallSegment>
pub fn to_segments(&self) -> Vec<WallSegment>
Expand this polygon into a sequence of WallSegments consumable
by the 2-D physics models.
Trait Implementations§
Source§impl Clone for WallPolygon3D
impl Clone for WallPolygon3D
Source§fn clone(&self) -> WallPolygon3D
fn clone(&self) -> WallPolygon3D
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 moreAuto Trait Implementations§
impl Freeze for WallPolygon3D
impl RefUnwindSafe for WallPolygon3D
impl Send for WallPolygon3D
impl Sync for WallPolygon3D
impl Unpin for WallPolygon3D
impl UnsafeUnpin for WallPolygon3D
impl UnwindSafe for WallPolygon3D
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