Class: VORuby::SpaceTime::SpatialPosition
- Defined in:
- lib/voruby/spacetime/spacetime.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- 
  
    
      #axis1  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute axis1. 
- 
  
    
      #axis2  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute axis2. 
- 
  
    
      #axis3  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute axis3. 
Instance Method Summary collapse
- 
  
    
      #initialize(x, y, z)  ⇒ SpatialPosition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SpatialPosition. 
Constructor Details
#initialize(x, y, z) ⇒ SpatialPosition
Returns a new instance of SpatialPosition.
| 10 11 12 13 14 | # File 'lib/voruby/spacetime/spacetime.rb', line 10 def initialize(x, y, z) self.axis1 = x self.axis2 = y self.axis3 = z end | 
Instance Attribute Details
#axis1 ⇒ Object
Returns the value of attribute axis1.
| 8 9 10 | # File 'lib/voruby/spacetime/spacetime.rb', line 8 def axis1 @axis1 end | 
#axis2 ⇒ Object
Returns the value of attribute axis2.
| 8 9 10 | # File 'lib/voruby/spacetime/spacetime.rb', line 8 def axis2 @axis2 end | 
#axis3 ⇒ Object
Returns the value of attribute axis3.
| 8 9 10 | # File 'lib/voruby/spacetime/spacetime.rb', line 8 def axis3 @axis3 end |