class CooCoo::Image::Translate
Public Class Methods
new(tx, ty)
click to toggle source
Calls superclass method
# File lib/coo-coo/image.rb, line 177 def initialize(tx, ty) super() @tx = tx @ty = ty end
Public Instance Methods
call(x, y)
click to toggle source
# File lib/coo-coo/image.rb, line 183 def call(x, y) [ x - @tx, y - @ty ] end