Struct math2d::BezierSegment
source · Expand description
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: Point2f
The first control point
p2: Point2f
The second control point
p3: Point2f
The end point
Implementations§
Trait Implementations§
source§impl Clone for BezierSegment
impl Clone for BezierSegment
source§fn clone(&self) -> BezierSegment
fn clone(&self) -> BezierSegment
Returns a copy 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 Debug for BezierSegment
impl Debug for BezierSegment
source§impl Default for BezierSegment
impl Default for BezierSegment
source§fn default() -> BezierSegment
fn default() -> BezierSegment
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BezierSegment
impl<'de> Deserialize<'de> for BezierSegment
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<P1, P2, P3> From<(P1, P2, P3)> for BezierSegmentwhere
P1: Into<Point2f>,
P2: Into<Point2f>,
P3: Into<Point2f>,
impl<P1, P2, P3> From<(P1, P2, P3)> for BezierSegmentwhere
P1: Into<Point2f>,
P2: Into<Point2f>,
P3: Into<Point2f>,
source§fn from((p1, p2, p3): (P1, P2, P3)) -> BezierSegment
fn from((p1, p2, p3): (P1, P2, P3)) -> BezierSegment
Converts to this type from the input type.