@@ -152,7 +152,7 @@ The `overlay` function returns a `Vec<Shapes>`:
152152## Custom Point Type Support
153153` iOverlay ` allows users to define custom point types, as long as they implement the ` FloatPointCompatible ` trait.
154154``` rust
155- use i_float :: float :: compatible :: FloatPointCompatible ;
155+ use i_overlay :: i_float :: float :: compatible :: FloatPointCompatible ;
156156use i_overlay :: core :: fill_rule :: FillRule ;
157157use i_overlay :: core :: overlay_rule :: OverlayRule ;
158158use i_overlay :: float :: single :: SingleFloatOverlay ;
@@ -205,7 +205,6 @@ println!("result: {:?}", result);
205205
206206``` rust
207207use i_overlay :: core :: fill_rule :: FillRule ;
208- use i_overlay :: float :: single :: SingleFloatOverlay ;
209208use i_overlay :: float :: slice :: FloatSlice ;
210209
211210let polygon = [
@@ -234,7 +233,6 @@ println!("result: {:?}", result);
234233``` rust
235234use i_overlay :: core :: fill_rule :: FillRule ;
236235use i_overlay :: float :: clip :: FloatClip ;
237- use i_overlay :: float :: single :: SingleFloatOverlay ;
238236use i_overlay :: string :: clip :: ClipRule ;
239237
240238let polygon = [
@@ -328,7 +326,7 @@ let shape = vec![
328326];
329327
330328let style = OutlineStyle :: new (0.2 ). line_join (LineJoin :: Round (0.1 ));
331- let shapes = shape . outline (style );
329+ let shapes = shape . outline (& style );
332330
333331println! (" shapes: {:?}" , & shapes );
334332```
0 commit comments