Class: Vector

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#-@Object



113
114
115
# File 'lib/layout.rb', line 113

def -@
  self.map{|a| -a}
end

#unitObject



109
110
111
# File 'lib/layout.rb', line 109

def unit
  self * (1 / self.r)
end