Permalink
Browse files

Add Vector.intfloor

  • Loading branch information...
1 parent e0d999c commit c4da23dfb292dc9ed1cdda5be9ca386c5297ef42 @codewarrior0 codewarrior0 committed Jan 8, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 box.py
View
5 box.py
@@ -35,7 +35,10 @@ def normalize(self):
l = self.length()
if l == 0: return self
return self / l
-
+
+ def intfloor(self):
+ return Vector(*[int(math.floor(p)) for p in self])
+
class BoundingBox (object):
type = int

0 comments on commit c4da23d

Please sign in to comment.