Skip to content

Commit

Permalink
Add Vector.intfloor
Browse files Browse the repository at this point in the history
  • Loading branch information
codewarrior0 committed Jan 11, 2013
1 parent e0d999c commit c4da23d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion box.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c4da23d

Please sign in to comment.