#[repr(C)]pub struct PathCubicTo {
pub x: f32,
pub y: f32,
pub control_1_x: f32,
pub control_1_y: f32,
pub control_2_x: f32,
pub control_2_y: f32,
}Available on crate feature
path only.Expand description
PathCubicTo describes a smooth Bézier curve from the path’s current position to the specified x/y location, using two control points.
Fields§
§x: f32The x coordinate of the curve’s end point.
y: f32The y coordinate of the curve’s end point.
control_1_x: f32The x coordinate of the curve’s first control point.
control_1_y: f32The y coordinate of the curve’s first control point.
control_2_x: f32The x coordinate of the curve’s second control point.
control_2_y: f32The y coordinate of the curve’s second control point.
Implementations§
Source§impl PathCubicTo
impl PathCubicTo
Sourcepub const FIELD_OFFSETS: PathCubicToFieldsOffsets = PathCubicToFieldsOffsets
pub const FIELD_OFFSETS: PathCubicToFieldsOffsets = PathCubicToFieldsOffsets
Return a zero-sized helper whose methods return field offsets.
Trait Implementations§
Source§impl Clone for PathCubicTo
impl Clone for PathCubicTo
Source§impl Debug for PathCubicTo
impl Debug for PathCubicTo
Source§impl Default for PathCubicTo
impl Default for PathCubicTo
Source§impl From<PathCubicTo> for PathElement
impl From<PathCubicTo> for PathElement
Source§fn from(value: PathCubicTo) -> Self
fn from(value: PathCubicTo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PathCubicTo
impl PartialEq for PathCubicTo
impl StructuralPartialEq for PathCubicTo
impl<'__dummy_lifetime> Unpin for PathCubicTowhere
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
Auto Trait Implementations§
impl Freeze for PathCubicTo
impl RefUnwindSafe for PathCubicTo
impl Send for PathCubicTo
impl Sync for PathCubicTo
impl UnsafeUnpin for PathCubicTo
impl UnwindSafe for PathCubicTo
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