Skip to content

Surface Grid v0.2.0

Compare
Choose a tag to compare
@WhyAreAllTheseTaken WhyAreAllTheseTaken released this 26 Jan 13:17
· 54 commits to master since this release

Additions

  • Added methods to SurfaceGrid that perform operations in parallel.
    • from_fn_par - Initializes a grid in parallel. Can be used instead of from_fn.
    • map_neighbours_par - Performs map_neighbours in parallel.
    • map_neighbours_diagonals_par - Performs map_neighbours_diagonals in parallel.
    • set_from_fn_par - Sets the values in a grid in parallel. Can be used instead of set_from_fn.
    • set_from_neighbours_par - Performs set_from_neighbours in parallel.
    • set_from_neighbours_diagonals_par - Performs set_from_neighbours_diagonals in parallel.
    • par_iter - Returns a ParallelIterator over the points in the grid and their values.
    • par_points - Returns a ParallelIterator over the points in the grid.

Fixes

  • Fixed the Y position returned by the position method of RectangleSpherePoint returning 1.0 when it should return 0.0 and 0.0 when it should return 1.0.
  • Fixed the incorrect geographic coordinates produced by CubeSpherePoint.
  • Fixed incorrect position select when converting from geographic coordinates in CubeSpherePoint.

Dependencies

  • The crate now depends on rayon for parallel operations.
  • The crate now uses static-array version 0.5.0 with the rayon feature.

Full Changelog: v0.1.0...v0.2.0