Function rin_graphics::bezier_iter[][src]

pub fn bezier_iter<Point>(
    from: Point,
    cp1: Point,
    cp2: Point,
    to: Point,
    resolution: u32
) -> BezierIter<Point>

Notable traits for BezierIter<Point>

impl<Point> Iterator for BezierIter<Point> where
    Point: FloatPnt + Copy,
    <Point as NumPnt>::Field: RealField + NumCast,
    <Point as NumPnt>::Coordinates: Neg<Output = <Point as NumPnt>::Coordinates> + Copy
type Item = Point;
where
    <Point as NumPnt>::Field: RealField + NumCast + Copy,
    <Point as NumPnt>::Coordinates: Neg<Output = <Point as NumPnt>::Coordinates> + Copy,
    Point: FloatPnt + Copy

Returns a bezier iterator with the passed parameter

The iterator can be used for eaxmple on a loop to go through all the vertices of the bezier