class Cairo::Matrix - cairo-1.12.9 Documentation

# class Cairo::Matrix

### Public Instance Methods

*(other)
Alias for: multiply
clone() click to toggle source

    # File lib/cairo.rb, line 120
    def clone
      copy = dup
      copy.freeze if self.frozen?
      copy
    end

dup() click to toggle source

    # File lib/cairo.rb, line 116
    def dup
      Matrix.new(*to_a)
    end

invert() click to toggle source

    # File lib/cairo.rb, line 129
    def invert; dup.invert!; end

multiply(other) click to toggle source

    # File lib/cairo.rb, line 130
    def multiply(other); dup.multiply!(other); end

Also aliased as: *
rotate(radians) click to toggle source

    # File lib/cairo.rb, line 128
    def rotate(radians); dup.rotate!(radians); end

scale(sx, sy) click to toggle source

    # File lib/cairo.rb, line 127
    def scale(sx, sy); dup.scale!(sx, sy); end

translate(tx, ty) click to toggle source

    # File lib/cairo.rb, line 126
    def translate(tx, ty); dup.translate!(tx, ty); end