pub struct StrokeLineResult {
pub positions: Vec<[f64; 2]>,
pub indices: Vec<u32>,
pub normals: Vec<[f64; 2]>,
pub distances: Vec<f64>,
pub cap_join: Vec<f32>,
}Expand description
Output of stroke_line_styled.
Fields§
§positions: Vec<[f64; 2]>Vertex positions [lon, lat] in degree space.
indices: Vec<u32>Triangle indices into positions.
normals: Vec<[f64; 2]>Per-vertex extrusion normal [nx, ny] (unit-length, perpendicular to
centreline). Same length as positions.
distances: Vec<f64>Per-vertex cumulative distance along the polyline centreline (degrees).
Same length as positions.
cap_join: Vec<f32>Per-vertex cap/join flag. 1.0 for vertices belonging to round
cap or round join fan geometry (center and perimeter), 0.0 for
ribbon body, bevel, miter, and square cap vertices.
The GPU shader uses this flag to switch from linear edge AA (ribbon body) to SDF circle-based AA (round caps/joins).
Trait Implementations§
Source§impl Clone for StrokeLineResult
impl Clone for StrokeLineResult
Source§fn clone(&self) -> StrokeLineResult
fn clone(&self) -> StrokeLineResult
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for StrokeLineResult
impl RefUnwindSafe for StrokeLineResult
impl Send for StrokeLineResult
impl Sync for StrokeLineResult
impl Unpin for StrokeLineResult
impl UnsafeUnpin for StrokeLineResult
impl UnwindSafe for StrokeLineResult
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