Trait lyon_tessellation::BezierGeometryBuilder
[−]
[src]
pub trait BezierGeometryBuilder<Input>: GeometryBuilder<Input> { fn add_quadratic_bezier(
&mut self,
from: VertexId,
to: VertexId,
ctrl: Input
); }
An extension to GeometryBuilder that can handle quadratic bézier segments.
Required Methods
fn add_quadratic_bezier(&mut self, from: VertexId, to: VertexId, ctrl: Input)
Insert a quadratic bezier curve. The interrior is on the right side of the curve.
This method can only be called between begin_geometry
and end_geometry
.
Implementors
impl<'l, VertexType, Input, Ctor> BezierGeometryBuilder<Input> for BuffersBuilder<'l, VertexType, Input, Ctor> where
VertexType: 'l + Clone,
Ctor: VertexConstructor<Input, VertexType>,