File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- use num_traits :: Float ;
1
+ use types :: CoordinateType ;
2
2
use algorithm:: map_coords:: { MapCoords , MapCoordsInplace } ;
3
3
4
4
pub trait Translate < T > {
@@ -22,14 +22,14 @@ pub trait Translate<T> {
22
22
/// let correct_ls = LineString(correct);
23
23
/// assert_eq!(translated, correct_ls);
24
24
/// ```
25
- fn translate ( & self , xoff : T , yoff : T ) -> Self where T : Float ;
25
+ fn translate ( & self , xoff : T , yoff : T ) -> Self where T : CoordinateType ;
26
26
27
27
/// Translate a Geometry along its axes, but in place.
28
- fn translate_inplace ( & mut self , xoff : T , yoff : T ) where T : Float ;
28
+ fn translate_inplace ( & mut self , xoff : T , yoff : T ) where T : CoordinateType ;
29
29
}
30
30
31
31
impl < T , G > Translate < T > for G
32
- where T : Float ,
32
+ where T : CoordinateType ,
33
33
G : MapCoords < T , T , Output =G > +MapCoordsInplace < T >
34
34
{
35
35
fn translate ( & self , xoff : T , yoff : T ) -> Self {
You can’t perform that action at this time.
0 commit comments