Crate aochelpers

source ·

Structs

  • A standard 2D Cartesian Coordinate
  • Standard 3D Cartesian Coordinate
  • Describes a cuboid aligned with the x,y,z axes by way of its top left back and bottom right front corners
  • Representation of a point moving in a direction
  • Describes a rectangle aligned with the x,y,z axes by way of its top left and bottom right corners
  • Generic struct used to select an item based on a minimum score. Use with std::collections::BinaryHeap for problems requiring Djikstra’s Algorithm or A*

Enums

Traits

  • Defines a direction used by a Particle. May be either a compass Direction or an i32 bearing.

Functions

  • Parses a grid of digits in the form of a string to a HashMap<Coordinate, T>