redblobgames / dual-mesh

Dual polygon-triangle mesh code used in redblobgames's projects

Home Page:https://redblobgames.github.io/dual-mesh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move t_vertex, r_vertex behind accessor methods

redblobgames opened this issue · comments

For very large maps, we could save a lot of memory by putting the vertex positions into a flat typedarray. First step: move the positions to accessor methods r_x, r_y, t_x, t_y, and then we can change the representation.