Skip to content

provide Coord2d and Coord3d templates - #5886

Merged
ab9rf merged 2 commits into
DFHack:developfrom
ab9rf:coord-template
Sep 1, 2026
Merged

provide Coord2d and Coord3d templates#5886
ab9rf merged 2 commits into
DFHack:developfrom
ab9rf:coord-template

Conversation

@ab9rf

@ab9rf ab9rf commented Sep 1, 2026

Copy link
Copy Markdown
Member

This adds Coord2d and Coord3d templates, providing a standard set of operations over 2-tuples and 3-tuples of any numeric type

A companion update to df-structures, which will come after this is merged, will switch df::coord to be the same as Coord3d<int16_t> and df::coord2d to be the same as Coord2d<int16_t>; some of the changes in this PR are specifically in anticipation of that change

@ab9rf
ab9rf merged commit 0c19921 into DFHack:develop Sep 1, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant