[−][src]Struct flo_curves::bezier::Curve
Represents a Bezier curve
Fields
start_point: Coord
end_point: Coord
control_points: (Coord, Coord)
Trait Implementations
impl<Coord: Coordinate> BezierCurve for Curve<Coord>
[src]
fn start_point(&self) -> Coord
[src]
fn end_point(&self) -> Coord
[src]
fn control_points(&self) -> (Coord, Coord)
[src]
fn reverse<Curve: BezierCurveFactory<Point = Self::Point>>(self) -> Curve
[src]
fn point_at_pos(&self, t: f64) -> Self::Point
[src]
fn t_for_point(&self, point: &Self::Point) -> Option<f64>
[src]
fn subdivide<Curve: BezierCurveFactory<Point = Self::Point>>(
&self,
t: f64
) -> (Curve, Curve)
[src]
&self,
t: f64
) -> (Curve, Curve)
fn bounding_box<Bounds: BoundingBox<Point = Self::Point>>(&self) -> Bounds
[src]
fn fast_bounding_box<Bounds: BoundingBox<Point = Self::Point>>(&self) -> Bounds
[src]
fn search_with_bounds<MatchFn: Fn(Self::Point, Self::Point) -> bool>(
&self,
max_error: f64,
match_fn: MatchFn
) -> Vec<f64>
[src]
&self,
max_error: f64,
match_fn: MatchFn
) -> Vec<f64>
fn find_extremities(&self) -> Vec<f64>
[src]
fn estimate_length(&self, max_t: f64) -> f64
[src]
fn section<'a>(&'a self, t_min: f64, t_max: f64) -> CurveSection<'a, Self>
[src]
impl<Coord: Coordinate> BezierCurveFactory for Curve<Coord>
[src]
fn from_points(
start: Coord,
(control_point1, control_point2): (Coord, Coord),
end: Coord
) -> Self
[src]
start: Coord,
(control_point1, control_point2): (Coord, Coord),
end: Coord
) -> Self
fn from_curve<Curve: BezierCurve<Point = Self::Point>>(curve: &Curve) -> Self
[src]
fn fit_from_points(points: &[Self::Point], max_error: f64) -> Option<Vec<Self>>
[src]
impl<Coord: Clone + Coordinate> Clone for Curve<Coord>
[src]
impl<Coord: Copy + Coordinate> Copy for Curve<Coord>
[src]
impl<Coord: Debug + Coordinate> Debug for Curve<Coord>
[src]
impl<Coord: Coordinate> Geo for Curve<Coord>
[src]
type Point = Coord
The type of a point in this geometry
impl<Coord: PartialEq + Coordinate> PartialEq<Curve<Coord>> for Curve<Coord>
[src]
impl<Coord: Coordinate> StructuralPartialEq for Curve<Coord>
[src]
Auto Trait Implementations
impl<Coord> RefUnwindSafe for Curve<Coord> where
Coord: RefUnwindSafe,
Coord: RefUnwindSafe,
impl<Coord> Send for Curve<Coord> where
Coord: Send,
Coord: Send,
impl<Coord> Sync for Curve<Coord> where
Coord: Sync,
Coord: Sync,
impl<Coord> Unpin for Curve<Coord> where
Coord: Unpin,
Coord: Unpin,
impl<Coord> UnwindSafe for Curve<Coord> where
Coord: UnwindSafe,
Coord: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,