lib/measures/tbd/resources/geometry.rb
def cross(other)
      return nil unless other.is_a?(Topolys::Vector3D)
      x = @y * other.z - @z * other.y
      y = @z * other.x - @x * other.z
      z = @x * other.y - @y * other.x
      return Topolys::Vector3D.new(x, y, z)
    end
##
# Gets the cross product between self & another 3D vector
#
# @param [Vector3D] other Another 3D vector
#
# @return [Vector3D] Returns cross product - nil if not Vector3D objects
Gets the cross product between self & another 3D vector
Gets the cross product between self & another 3D vector
def cross(other)
      return nil unless other.is_a?(Topolys::Vector3D)
      x = @y * other.z - @z * other.y
      y = @z * other.x - @x * other.z
      z = @x * other.y - @y * other.x
      return Topolys::Vector3D.new(x, y, z)
    end
def cross ( other ) return nil unless other . is_a? ( Topolys :: Vector3D ) x = @y * other . z - @z * other . y y = @z * other . x - @x * other . z z = @x * other . y - @y * other . x return Topolys :: Vector3D . new ( x , y , z ) end
Gets the cross product between self & another 3D vector
Gets the cross product between self & another 3D vector
Returns cross product - nil if not Vector3D objects
Returns cross product - nil if not Vector3D objects
Vector3D
other
other Another 3D vector
other Another 3D vector