pub struct LineVertex {
pub x: f64,
pub y: f64,
pub ex: f64,
pub ey: f64,
pub round: bool,
pub up: bool,
pub dir: f64,
pub linesofar: f64,
}Expand description
One line vertex as the line shaders see it after attribute decoding.
Fields§
§x: f64Position in tile units (8192 extent).
y: f64§ex: f64Extrusion vector, quantised to 1/63 as stored in a_data.xy.
ey: f64§round: bool§up: bool§dir: f64-1 / 0 / 1 (a_direction).
linesofar: f64v_linesofar in tile units, quantised as the shader decodes it.
Trait Implementations§
Source§impl Clone for LineVertex
impl Clone for LineVertex
impl Copy for LineVertex
Auto Trait Implementations§
impl Freeze for LineVertex
impl RefUnwindSafe for LineVertex
impl Send for LineVertex
impl Sync for LineVertex
impl Unpin for LineVertex
impl UnsafeUnpin for LineVertex
impl UnwindSafe for LineVertex
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more