pub enum Bezier {
Line([Vec; 2]),
Cubic([Vec; 4]),
}
Variants§
Implementations§
Source§impl Bezier
impl Bezier
pub fn points(&self) -> &[Vec]
pub fn left_different(&self) -> [Vec; 2]
pub fn right_different(&self) -> [Vec; 2]
pub fn normalize(&self) -> Option<Self>
pub fn intersect(&self, other: &Self) -> bool
pub fn rev(&self) -> Self
pub fn offset(&self, dist: f32) -> SmallVec<[Self; 16]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bezier
impl RefUnwindSafe for Bezier
impl Send for Bezier
impl Sync for Bezier
impl Unpin for Bezier
impl UnwindSafe for Bezier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)