Struct lyon_tessellation::StrokeVertex
source · pub struct StrokeVertex<'a, 'b>(/* private fields */);
Expand description
Extra vertex information from the StrokeTessellator
accessible when building vertices.
Implementations§
source§impl<'a, 'b> StrokeVertex<'a, 'b>
impl<'a, 'b> StrokeVertex<'a, 'b>
sourcepub fn normal(&self) -> Vector
pub fn normal(&self) -> Vector
Normal at this vertex.
The length of the provided normal is such that displacing the vertex along it inflates the stroke by 2.0 (1.0 on each side).
sourcepub fn position_on_path(&self) -> Point
pub fn position_on_path(&self) -> Point
Position of this vertex on the path, unaffected by the line width.
sourcepub fn advancement(&self) -> f32
pub fn advancement(&self) -> f32
How far along the path this vertex is.
sourcepub fn source(&self) -> VertexSource
pub fn source(&self) -> VertexSource
Returns the source of this vertex.
sourcepub fn interpolated_attributes(&mut self) -> &[f32]
pub fn interpolated_attributes(&mut self) -> &[f32]
Returns the source of this vertex.
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for StrokeVertex<'a, 'b>
impl<'a, 'b> !Send for StrokeVertex<'a, 'b>
impl<'a, 'b> !Sync for StrokeVertex<'a, 'b>
impl<'a, 'b> Unpin for StrokeVertex<'a, 'b>
impl<'a, 'b> !UnwindSafe for StrokeVertex<'a, 'b>
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