Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Vector.intfloor

  • Loading branch information...
commit c4da23dfb292dc9ed1cdda5be9ca386c5297ef42 1 parent e0d999c
@codewarrior0 codewarrior0 authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.