pub struct CurvePath { /* private fields */ }Expand description
Pieces of curves laid end to end, in the order the path runs; see the module documentation.
Implementations§
Source§impl CurvePath
impl CurvePath
Sourcepub fn new(pieces: Vec<PathPiece>) -> Self
pub fn new(pieces: Vec<PathPiece>) -> Self
The path through pieces, in order. Nothing is checked here (see
the module documentation).
Sourcepub fn into_pieces(self) -> Vec<PathPiece>
pub fn into_pieces(self) -> Vec<PathPiece>
The pieces, in order, by value.
Sourcepub fn reversed(self) -> Self
pub fn reversed(self) -> Self
The same path traversed the other way: its pieces in reverse order, each reversed.
Sourcepub fn placed(self, rigid: Transform3, exact: bool) -> Self
pub fn placed(self, rigid: Transform3, exact: bool) -> Self
The same path carried further by the rigid motion rigid (every
piece, after any placement it has), exact when that motion is.
Trait Implementations§
Source§impl Extend<PathPiece> for CurvePath
impl Extend<PathPiece> for CurvePath
Source§fn extend<I: IntoIterator<Item = PathPiece>>(&mut self, pieces: I)
fn extend<I: IntoIterator<Item = PathPiece>>(&mut self, pieces: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<PathPiece> for CurvePath
impl FromIterator<PathPiece> for CurvePath
impl StructuralPartialEq for CurvePath
Auto Trait Implementations§
impl Freeze for CurvePath
impl RefUnwindSafe for CurvePath
impl Send for CurvePath
impl Sync for CurvePath
impl Unpin for CurvePath
impl UnsafeUnpin for CurvePath
impl UnwindSafe for CurvePath
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