Class: RClusters::ScreenDistance

Inherits:
Base
  • Object
show all
Defined in:
lib/rclusters/screen_distance.rb

Constant Summary collapse

ZOOM =
12

Instance Method Summary collapse

Methods inherited from Base

#calculate

Constructor Details

#initialize(opts = {}) ⇒ ScreenDistance

Returns a new instance of ScreenDistance.



7
8
9
10
# File 'lib/rclusters/screen_distance.rb', line 7

def initialize(opts = {})
  super
  @zoom = opts[:zoom] || ZOOM
end