lib/ruby_on_rays/vector3.rb
# Returns the vector-vector cross product.
# @param rhs [Vector3]
# @return [Float]
Returns the vector-vector cross product.
Returns the vector - vector cross product .
def cross(rhs)
      x = @y * rhs.z - @z * rhs.y
      y = @z * rhs.x - @x * rhs.z
      z = @x * rhs.y - @y * rhs.x
      Vector3.new(x, y, z)
    end
def cross ( rhs ) x = @y * rhs . z - @z * rhs . y y = @z * rhs . x - @x * rhs . z z = @x * rhs . y - @y * rhs . x Vector3 . new ( x , y , z ) end
Returns the vector-vector cross product.
Returns the vector - vector cross product .
None
Float
rhs
<not_specific>
<not_specific>
None