Struct math2d::QuadBezierSegment
source · Expand description
Contains the control point and end point for a quadratic Bezier segment.
Fields§
§p1: Point2f
The control point of the quadratic Bezier segment.
p2: Point2f
The end point of the quadratic Bezier segment.
Implementations§
Trait Implementations§
source§impl Clone for QuadBezierSegment
impl Clone for QuadBezierSegment
source§fn clone(&self) -> QuadBezierSegment
fn clone(&self) -> QuadBezierSegment
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 QuadBezierSegment
impl Debug for QuadBezierSegment
source§impl Default for QuadBezierSegment
impl Default for QuadBezierSegment
source§fn default() -> QuadBezierSegment
fn default() -> QuadBezierSegment
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for QuadBezierSegment
impl<'de> Deserialize<'de> for QuadBezierSegment
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> From<(P1, P2)> for QuadBezierSegmentwhere
P1: Into<Point2f>,
P2: Into<Point2f>,
impl<P1, P2> From<(P1, P2)> for QuadBezierSegmentwhere
P1: Into<Point2f>,
P2: Into<Point2f>,
source§fn from((p1, p2): (P1, P2)) -> QuadBezierSegment
fn from((p1, p2): (P1, P2)) -> QuadBezierSegment
Converts to this type from the input type.
source§impl From<D2D1_QUADRATIC_BEZIER_SEGMENT> for QuadBezierSegment
impl From<D2D1_QUADRATIC_BEZIER_SEGMENT> for QuadBezierSegment
source§fn from(seg: D2D1_QUADRATIC_BEZIER_SEGMENT) -> QuadBezierSegment
fn from(seg: D2D1_QUADRATIC_BEZIER_SEGMENT) -> QuadBezierSegment
Converts to this type from the input type.
source§impl From<QuadBezierSegment> for D2D1_QUADRATIC_BEZIER_SEGMENT
impl From<QuadBezierSegment> for D2D1_QUADRATIC_BEZIER_SEGMENT
source§fn from(seg: QuadBezierSegment) -> D2D1_QUADRATIC_BEZIER_SEGMENT
fn from(seg: QuadBezierSegment) -> D2D1_QUADRATIC_BEZIER_SEGMENT
Converts to this type from the input type.