lib/ruby_on_rays/point3.rb
# Returns the distance between this point and another point.
# @param other [Point3]
# @return [Float] The distance squared.
Returns the distance between this point and another point.
Returns the distance between this point and another point .
def distance_to(other)
      dx = @x - other.x
      dy = @y - other.y
      dz = @z - other.z
      Math.sqrt(dx * dx + dy * dy + dz * dz)
    end
def distance_to ( other ) dx = @x - other . x dy = @y - other . y dz = @z - other . z Math . sqrt ( dx * dx + dy * dy + dz * dz ) end
Returns the distance between this point and another point.
Returns the distance between this point and another point .
The distance squared.
The distance squared .
Float
other
<not_specific>
<not_specific>
None