Class: XYP::View

Inherits:
Object
  • Object
show all
Defined in:
lib/xyp/plot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(center, dims) ⇒ View

Returns a new instance of View.



41
42
43
44
# File 'lib/xyp/plot.rb', line 41

def initialize center,dims
  @center=center
  @dims=dims.map(&:to_f)
end

Instance Attribute Details

#centerObject

Returns the value of attribute center.



40
41
42
# File 'lib/xyp/plot.rb', line 40

def center
  @center
end

#dimsObject

Returns the value of attribute dims.



40
41
42
# File 'lib/xyp/plot.rb', line 40

def dims
  @dims
end