*(other)
click to toggle source
clone()
click to toggle source
def clone
copy = dup
copy.freeze if self.frozen?
copy
end
dup()
click to toggle source
def dup
Matrix.new(*to_a)
end
invert()
click to toggle source
def invert; dup.invert!; end
multiply(other)
click to toggle source
def multiply(other); dup.multiply!(other); end
rotate(radians)
click to toggle source
def rotate(radians); dup.rotate!(radians); end
scale(sx, sy)
click to toggle source
def scale(sx, sy); dup.scale!(sx, sy); end
translate(tx, ty)
click to toggle source
def translate(tx, ty); dup.translate!(tx, ty); end