Skip to content

Commit

Permalink
partial revert of c0a720a where explicit f64 was good documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Jun 23, 2022
1 parent cc2ec5c commit 338bc2e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions geo/src/algorithm/map_coords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ mod modern {
/// # use approx::assert_relative_eq;
///
/// let SCALE_FACTOR: f64 = 1000000.0;
/// let p1: Point<f32> = Point::new(10.0f32, 20.0f32);
/// let p2: Point<f64> = p1.map_coords(|Coordinate { x, y }| (x as f64, y as f64).into());
///
/// let floating_point_geom: Point<f64> = Point::new(10.15f64, 20.05f64);
/// let fixed_point_geom: Point<i32> = floating_point_geom.map_coords(|Coordinate { x, y }| {
/// Coordinate { x: (x * SCALE_FACTOR) as i32, y: (y * SCALE_FACTOR) as i32 }
Expand Down

0 comments on commit 338bc2e

Please sign in to comment.