pub struct RoadNode {
pub position: Vec2,
pub elevation: f32,
pub edges: Vec<EdgeId>,
}Expand description
A road intersection or endpoint.
Fields§
§position: Vec2World-space position (X, Z in a Y-up coordinate system).
elevation: f32World-space Y elevation (height above sea level). Set from the heightmap during tracing, then smoothed by rationalization.
edges: Vec<EdgeId>Indices of all edges incident to this node (both active and inactive).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoadNode
impl<'de> Deserialize<'de> for RoadNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RoadNode
impl RefUnwindSafe for RoadNode
impl Send for RoadNode
impl Sync for RoadNode
impl Unpin for RoadNode
impl UnsafeUnpin for RoadNode
impl UnwindSafe for RoadNode
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