logo
pub struct StrokeVertex<'a, 'b>(_, _);
Expand description

Extra vertex information from the StrokeTessellator accessible when building vertices.

Implementations

The vertex position.

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).

Position of this vertex on the path, unaffected by the line width.

The line width at this vertex.

If a line width modifier is set via StrokeOptions::variable_line_width, the returned line width is equal to StrokeOptions::line_width multiplied by the line width modifier at this vertex.

How far along the path this vertex is.

Whether the vertex is on the positive or negative side of the path.

Returns the source of this vertex.

Computes and returns the custom attributes for this vertex.

The attributes are interpolated along the edges on which this vertex is. This can include multiple edges if the vertex is at an intersection.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.