Sha256: 23a508d8ea967d0ba9f01f89b62fbc83c046b4a13e37f8f9632b2b07c1123c8e
Contents?: true
Size: 362 Bytes
Versions: 24
Compression:
Stored size: 362 Bytes
Contents
module Rubyvis def self.Transform Rubyvis::Transform end class Transform attr_accessor :k,:x,:y def initialize @k=1 @x=0 @y=0 end def translate(x,y) v=Transform.new v.k=self.k v.x=self.k*x+self.x v.y=self.k*y+self.y v end def self.identity Transform.new end end end
Version data entries
24 entries across 24 versions & 1 rubygems