lib/geometer/point.rb in geometer-0.1.2 vs lib/geometer/point.rb in geometer-0.1.3

- old
+ new

@@ -21,9 +21,13 @@ def translate(other_point) dx,dy = *other_point Point.new(x+dx, y+dy) end + + def to_i + Point.new(x.to_i, y.to_i) + end end module PointHelpers def coord(x,y); Point.new(x,y) end end