pub struct Guide { /* private fields */ }Expand description
A guide curve flattened to a polyline with cumulative arc lengths.
Implementations§
Source§impl Guide
impl Guide
Sourcepub fn from_path(path: &BezPath, closed: bool) -> Guide
pub fn from_path(path: &BezPath, closed: bool) -> Guide
A guide through path (any curves), flattened.
Sourcepub fn is_closed(&self) -> bool
pub fn is_closed(&self) -> bool
Whether the guide is a closed loop (positions past its end wrap around).
Sourcepub fn at(&self, s: f64) -> (Point, Vec2)
pub fn at(&self, s: f64) -> (Point, Vec2)
Point and unit tangent at arc length s. Open guides continue along their end tangents
past either end; closed guides wrap.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Guide
impl RefUnwindSafe for Guide
impl Send for Guide
impl Sync for Guide
impl Unpin for Guide
impl UnsafeUnpin for Guide
impl UnwindSafe for Guide
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