Class: Axis
- Inherits:
-
Object
- Object
- Axis
- Defined in:
- lib/coordinate_system.rb
Instance Attribute Summary collapse
-
#basis_vector ⇒ Object
Returns the value of attribute basis_vector.
-
#range ⇒ Object
Returns the value of attribute range.
Instance Method Summary collapse
-
#initialize(basis_vector, range) ⇒ Axis
constructor
A new instance of Axis.
Constructor Details
#initialize(basis_vector, range) ⇒ Axis
Returns a new instance of Axis.
10 11 12 13 |
# File 'lib/coordinate_system.rb', line 10 def initialize(basis_vector, range) @basis_vector = basis_vector @range = range end |
Instance Attribute Details
#basis_vector ⇒ Object
Returns the value of attribute basis_vector.
9 10 11 |
# File 'lib/coordinate_system.rb', line 9 def basis_vector @basis_vector end |
#range ⇒ Object
Returns the value of attribute range.
9 10 11 |
# File 'lib/coordinate_system.rb', line 9 def range @range end |