Struct lyon_tessellation::FillVertex
source · pub struct FillVertex<'l> { /* private fields */ }
Expand description
Extra vertex information from the FillTessellator
, accessible when building vertices.
Implementations§
source§impl<'l> FillVertex<'l>
impl<'l> FillVertex<'l>
pub fn position(&self) -> Point
sourcepub fn sources(&self) -> VertexSourceIterator<'_> ⓘ
pub fn sources(&self) -> VertexSourceIterator<'_> ⓘ
Return an iterator over the sources of the vertex.
sourcepub fn as_endpoint_id(&self) -> Option<EndpointId>
pub fn as_endpoint_id(&self) -> Option<EndpointId>
Returns the first endpoint that this vertex is on, if any.
This is meant to be used only in very simple cases where self-intersections,
overlapping vertices and curves are unexpected.
This will return None
at self-intersections and between the endpoints of
a flattened curve. If two endpoints are at the same position only one of
them is returned.
See also: FillVertex::sources
.
sourcepub fn interpolated_attributes(&mut self) -> &[f32]
pub fn interpolated_attributes(&mut self) -> &[f32]
Fetch or interpolate the custom attribute values at this vertex.
Auto Trait Implementations§
impl<'l> !RefUnwindSafe for FillVertex<'l>
impl<'l> !Send for FillVertex<'l>
impl<'l> !Sync for FillVertex<'l>
impl<'l> Unpin for FillVertex<'l>
impl<'l> !UnwindSafe for FillVertex<'l>
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