Class: Fixnum

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

Instance Method Summary collapse

Instance Method Details

#*(other) ⇒ Object



82
83
84
85
86
87
88
89
# File 'lib/geom3d/vector.rb', line 82

def * other
  case other
  when Geom3d::Vector
    Geom3d::Vector.new(self * other.dx, self * other.dy, self * other.dz)
  else
    self.times_without_geom3d(other)
  end
end

#times_without_geom3dObject



80
# File 'lib/geom3d/vector.rb', line 80

alias :times_without_geom3d :'*'