Class: Bignum

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

Instance Method Summary collapse

Instance Method Details

#*(other) ⇒ Object



95
96
97
98
99
100
101
102
# File 'lib/geom3d/vector.rb', line 95

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



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

alias :times_without_geom3d :'*'