Class: XYP::View
- Inherits:
-
Object
- Object
- XYP::View
- Defined in:
- lib/xyp/plot.rb
Instance Attribute Summary collapse
-
#center ⇒ Object
Returns the value of attribute center.
-
#dims ⇒ Object
Returns the value of attribute dims.
Instance Method Summary collapse
-
#initialize(center, dims) ⇒ View
constructor
A new instance of View.
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
#center ⇒ Object
Returns the value of attribute center.
40 41 42 |
# File 'lib/xyp/plot.rb', line 40 def center @center end |
#dims ⇒ Object
Returns the value of attribute dims.
40 41 42 |
# File 'lib/xyp/plot.rb', line 40 def dims @dims end |