pub struct FloorTransition {
pub id: u64,
pub kind: ConnectorKind,
pub from_floor: FloorId,
pub from_pos: Vec2,
pub to_floor: FloorId,
pub to_pos: Vec2,
pub boarding_radius: f64,
pub travel_time: f64,
}Expand description
A connector between two floors.
Fields§
§id: u64Stable identifier.
kind: ConnectorKindKind.
from_floor: FloorIdFloor where the connector begins.
from_pos: Vec2Centre of the boarding zone on the origin floor.
to_floor: FloorIdFloor where the connector ends.
to_pos: Vec2Centre of the alighting zone on the destination floor.
boarding_radius: f64Zone radius within which boarding is accepted (m).
travel_time: f64Travel time from boarding to alighting (s).
Trait Implementations§
Source§impl Clone for FloorTransition
impl Clone for FloorTransition
Source§fn clone(&self) -> FloorTransition
fn clone(&self) -> FloorTransition
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 FloorTransition
impl RefUnwindSafe for FloorTransition
impl Send for FloorTransition
impl Sync for FloorTransition
impl Unpin for FloorTransition
impl UnsafeUnpin for FloorTransition
impl UnwindSafe for FloorTransition
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