Class: Vector
- Inherits:
-
Object
- Object
- Vector
- 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 |
#unit ⇒ Object
109 110 111 |
# File 'lib/layout.rb', line 109 def unit self * (1 / self.r) end |