[−][src]Struct math2d::BezierSegment
Represents a cubic bezier segment drawn between two points. The first point in the bezier segment is implicitly the end point of the previous segment.
Fields
p1: Point2fThe first control point
p2: Point2fThe second control point
p3: Point2fThe end point
Methods
impl BezierSegment[src]
pub fn new(
p1: impl Into<Point2f>,
p2: impl Into<Point2f>,
p3: impl Into<Point2f>
) -> BezierSegment[src]
p1: impl Into<Point2f>,
p2: impl Into<Point2f>,
p3: impl Into<Point2f>
) -> BezierSegment
Construct the segment from its parts, conveniently converting types like float tuples into points.
Trait Implementations
impl Copy for BezierSegment[src]
impl PartialEq<BezierSegment> for BezierSegment[src]
fn eq(&self, other: &BezierSegment) -> bool[src]
fn ne(&self, other: &BezierSegment) -> bool[src]
impl Default for BezierSegment[src]
fn default() -> BezierSegment[src]
impl<P1, P2, P3> From<(P1, P2, P3)> for BezierSegment where
P1: Into<Point2f>,
P2: Into<Point2f>,
P3: Into<Point2f>, [src]
P1: Into<Point2f>,
P2: Into<Point2f>,
P3: Into<Point2f>,
fn from((p1, p2, p3): (P1, P2, P3)) -> BezierSegment[src]
impl Clone for BezierSegment[src]
fn clone(&self) -> BezierSegment[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for BezierSegment[src]
impl Serialize for BezierSegment[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for BezierSegment[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for BezierSegment
impl Sync for BezierSegment
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,