Class: Axis

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_vectorObject

Returns the value of attribute basis_vector.



9
10
11
# File 'lib/coordinate_system.rb', line 9

def basis_vector
  @basis_vector
end

#rangeObject

Returns the value of attribute range.



9
10
11
# File 'lib/coordinate_system.rb', line 9

def range
  @range
end