Skip to content

Commit

Permalink
Add todo note regarding hex coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Sep 17, 2023
1 parent fc2a6c3 commit 65b0231
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game/cube_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ use crate::util::{Element, Error, Result, Vec2};

use super::CubeDir;

// TODO: Investigate using marker types to enforce global/local coordinates
// TODO: Add better representation of different Hex coordinate systems and (orthogonally) local/global coordinates
// We have a few options for that:
// - Generic Vec2/Vec3 types, parameterized over marker types (Offset, Axial, Doubled, Cube, ... and Local, Global)
// - Newtype wrappers around Vec2/Vec3 types

/// A cube coordinate vector (or position).
/// (see https://www.redblobgames.com/grids/hexagons/#coordinates-cube).
Expand Down

0 comments on commit 65b0231

Please sign in to comment.