pub enum Keypoint {
Point(Vec2),
BezierQuad {
to: Vec2,
control: Vec2,
},
BezierCubic {
to: Vec2,
control_from: Vec2,
control_to: Vec2,
},
}
Variants§
Point(Vec2)
Straigth line to point.
BezierQuad
Quadratic bezier curve.
BezierCubic
Cubic bezier curve.
Implementations§
Trait Implementations§
source§impl AddAssign<Vec2> for Keypoint
impl AddAssign<Vec2> for Keypoint
source§fn add_assign(&mut self, rhs: Vec2)
fn add_assign(&mut self, rhs: Vec2)
Performs the
+=
operation. Read moresource§impl AddAssign<f32> for Keypoint
impl AddAssign<f32> for Keypoint
source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the
+=
operation. Read moresource§impl DivAssign<f32> for Keypoint
impl DivAssign<f32> for Keypoint
source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moresource§impl MulAssign<Vec2> for Keypoint
impl MulAssign<Vec2> for Keypoint
source§fn mul_assign(&mut self, rhs: Vec2)
fn mul_assign(&mut self, rhs: Vec2)
Performs the
*=
operation. Read moresource§impl MulAssign<f32> for Keypoint
impl MulAssign<f32> for Keypoint
source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moresource§impl PartialEq<Keypoint> for Keypoint
impl PartialEq<Keypoint> for Keypoint
source§impl SubAssign<Vec2> for Keypoint
impl SubAssign<Vec2> for Keypoint
source§fn sub_assign(&mut self, rhs: Vec2)
fn sub_assign(&mut self, rhs: Vec2)
Performs the
-=
operation. Read moresource§impl SubAssign<f32> for Keypoint
impl SubAssign<f32> for Keypoint
source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the
-=
operation. Read more