lib/geomotion/cg_rect.rb in geomotion-0.0.1 vs lib/geomotion/cg_rect.rb in geomotion-0.0.2
- old
+ new
@@ -100,10 +100,10 @@
end
def center(relative = false)
offset_x = relative ? self.x : 0
offset_y = relative ? self.y : 0
- CGPoint.new(offset_x + self.width / 2, offset_y = self.height / 2)
+ CGPoint.new(offset_x + self.width / 2, offset_y + self.height / 2)
end
def round
CGRect.new([self.x.round, self.y.round], [self.width.round, self.height.round])
end
\ No newline at end of file