# File typeprof-0.12.0/testbed/ao.rb, line 23 def vadd(b) Vec.new(@x + b.x, @y + b.y, @z + b.z) end
make_inline_method :vsub
# File typeprof-0.12.0/testbed/ao.rb, line 32 def vcross(b) Vec.new(@y * b.z - @z * b.y, @z * b.x - @x * b.z, @x * b.y - @y * b.x) end
make_inline_method :vcross
# File typeprof-0.12.0/testbed/ao.rb, line 39 def vdot(b) r = @x * b.x + @y * b.y + @z * b.z r end
make_inline_method :vdot
# File typeprof-0.12.0/testbed/ao.rb, line 45 def vlength Math.sqrt(@x * @x + @y * @y + @z * @z) end