# File lib/as_transform2d.rb, line 18 def self.translate(x, y) AS::Transform2D[ [1, 0, 0, x], [0, 1, 0, y], [0, 0, 1, 0], [0, 0, 0, 1], ] end