pub struct QuadraticBezierPolynomial<S> {
pub a0: Vector<S>,
pub a1: Vector<S>,
pub a2: Vector<S>,
}
Expand description
The polynomial form of a quadratic bézier segment.
The sample
implementation uses Horner’s method and tends to be faster than
QuadraticBezierSegment::sample
.
Fields§
§a0: Vector<S>
§a1: Vector<S>
§a2: Vector<S>
Implementations§
Trait Implementations§
Source§impl<S: Clone> Clone for QuadraticBezierPolynomial<S>
impl<S: Clone> Clone for QuadraticBezierPolynomial<S>
Source§fn clone(&self) -> QuadraticBezierPolynomial<S>
fn clone(&self) -> QuadraticBezierPolynomial<S>
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 moreSource§impl<S: Debug> Debug for QuadraticBezierPolynomial<S>
impl<S: Debug> Debug for QuadraticBezierPolynomial<S>
Source§impl<S: PartialEq> PartialEq for QuadraticBezierPolynomial<S>
impl<S: PartialEq> PartialEq for QuadraticBezierPolynomial<S>
Source§fn eq(&self, other: &QuadraticBezierPolynomial<S>) -> bool
fn eq(&self, other: &QuadraticBezierPolynomial<S>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<S: Copy> Copy for QuadraticBezierPolynomial<S>
impl<S> StructuralPartialEq for QuadraticBezierPolynomial<S>
Auto Trait Implementations§
impl<S> Freeze for QuadraticBezierPolynomial<S>where
S: Freeze,
impl<S> RefUnwindSafe for QuadraticBezierPolynomial<S>where
S: RefUnwindSafe,
impl<S> Send for QuadraticBezierPolynomial<S>where
S: Send,
impl<S> Sync for QuadraticBezierPolynomial<S>where
S: Sync,
impl<S> Unpin for QuadraticBezierPolynomial<S>where
S: Unpin,
impl<S> UnwindSafe for QuadraticBezierPolynomial<S>where
S: UnwindSafe,
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