Struct veloren_common::terrain::map::Connection
source · pub struct Connection {
pub kind: ConnectionKind,
pub spline_derivative: Vec2<f32>,
pub width: f32,
}
Expand description
Map connection (per edge).
Fields§
§kind: ConnectionKind
The kind of connection this is (e.g. river or path).
spline_derivative: Vec2<f32>
Assumed to be the “b” part of a 2d quadratic function.
width: f32
Width of the connection.
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy 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 Connection
impl Debug for Connection
impl Copy for Connection
Auto Trait Implementations§
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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