Created
April 7, 2017 21:27
-
-
Save dustinlacewell/16551703767efd32411c6782f79016be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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