operator definition for Ruby usage
# File extensions/vector3d.rb, line 17 def * scale return cross_product(scale) if scale.respond_to?(:cross_product) multiply scale end
# File extensions/vector3d.rb, line 5 def + another_vector add another_vector end
# File extensions/vector3d.rb, line 9 def - another_vector subtract another_vector end
# File extensions/vector3d.rb, line 13 def -@ negate end
# File extensions/vector3d.rb, line 22 def / scale divide scale end