pub struct SplinePoint {
pub x: f32,
pub y: f32,
}Expand description
A control point on a spline curve.
Fields§
§x: f32X coordinate in image space.
y: f32Y coordinate in image space.
Implementations§
Trait Implementations§
Source§impl Add for SplinePoint
impl Add for SplinePoint
Source§impl Clone for SplinePoint
impl Clone for SplinePoint
Source§fn clone(&self) -> SplinePoint
fn clone(&self) -> SplinePoint
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 Debug for SplinePoint
impl Debug for SplinePoint
Source§impl Default for SplinePoint
impl Default for SplinePoint
Source§fn default() -> SplinePoint
fn default() -> SplinePoint
Returns the “default value” for a type. Read more
Source§impl Div<f32> for SplinePoint
impl Div<f32> for SplinePoint
Source§impl Mul<f32> for SplinePoint
impl Mul<f32> for SplinePoint
Source§impl Sub for SplinePoint
impl Sub for SplinePoint
impl Copy for SplinePoint
Auto Trait Implementations§
impl Freeze for SplinePoint
impl RefUnwindSafe for SplinePoint
impl Send for SplinePoint
impl Sync for SplinePoint
impl Unpin for SplinePoint
impl UnsafeUnpin for SplinePoint
impl UnwindSafe for SplinePoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more