# File ruby-3.1.2/lib/irb/easter-egg.rb, line 20 def cross(other) ox, oy, oz = other.x, other.y, other.z Vec.new(@y*oz-@z*oy, @z*ox-@x*oz, @x*oy-@y*ox) end
# File ruby-3.1.2/lib/irb/easter-egg.rb, line 16 def dot(other) @x*other.x + @y*other.y + @z*other.z end