Sha256: 29d86575511103c1442c088811918395d9ef28e1c63a0ed5a9d742c961b6b387

Contents?: true

Size: 688 Bytes

Versions: 22

Compression:

Stored size: 688 Bytes

Contents

# -----------------------------------------------------------------------------
# Draws things in a circular layout. This is an abstract class and should not
# be used directly.
#
# Author:: Fernand Galiana
# -----------------------------------------------------------------------------
require 'ziya/gauges/support/base'

module Ziya::Gauges::Support
  class RadialBase < Base  
    has_attribute :x, :y, :radius, :start_angle, :end_angle, :ticks, :color, :alpha
    
    # =========================================================================
    protected
    
      # converts degrees to radiant
      def deg2rad( degrees )
        degrees * Math::PI / 180
      end
  end
end  

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
derailed-ziya-2.0.4 lib/ziya/gauges/support/radial_base.rb
derailed-ziya-2.0.6 lib/ziya/gauges/support/radial_base.rb
derailed-ziya-2.0.8 lib/ziya/gauges/support/radial_base.rb
derailed-ziya-2.1.0 lib/ziya/gauges/support/radial_base.rb
derailed-ziya-2.1.1 lib/ziya/gauges/support/radial_base.rb
derailed-ziya-2.1.2 lib/ziya/gauges/support/radial_base.rb
derailed-ziya-2.1.3 lib/ziya/gauges/support/radial_base.rb
derailed-ziya-2.1.4 lib/ziya/gauges/support/radial_base.rb
derailed-ziya-2.1.5 lib/ziya/gauges/support/radial_base.rb
ziya-2.3.0 lib/ziya/gauges/support/radial_base.rb
ziya-2.1.9 lib/ziya/gauges/support/radial_base.rb
ziya-2.1.8 lib/ziya/gauges/support/radial_base.rb
ziya-2.1.7 lib/ziya/gauges/support/radial_base.rb
ziya-2.1.6 lib/ziya/gauges/support/radial_base.rb
ziya-2.0.2 lib/ziya/gauges/support/radial_base.rb
ziya-2.0.1 lib/ziya/gauges/support/radial_base.rb
ziya-2.0.0 lib/ziya/gauges/support/radial_base.rb
ziya-2.0.5 lib/ziya/gauges/support/radial_base.rb
ziya-2.0.6 lib/ziya/gauges/support/radial_base.rb
ziya-2.0.7 lib/ziya/gauges/support/radial_base.rb