Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinlacewell/16551703767efd32411c6782f79016be to your computer and use it in GitHub Desktop.
Save dustinlacewell/16551703767efd32411c6782f79016be to your computer and use it in GitHub Desktop.
type
Region*[T: int|float] = object
left, top, right, bottom: T
# then
for node in self.bsp.leaves:
var r: Region[float]
r.left = node.left
r.top = node.top
r.right = node.right
r.bottom = node.bottom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment