lib/ruby_on_rays/perspective_camera.rb
# Returns a ray for the given film point.
# @param p_film [Point2]
# @return [Ray3]
Returns a ray for the given film point.
Returns a ray for the given film point .
def ray_for_point(p_film)
      o = Point3.origin
      d = Vector3.new(@offset_x + p_film.x * @dx,
                      @offset_y + p_film.y * @dy,
                      1.0)
      Ray3.new(o, d)
    end
def ray_for_point ( p_film ) o = Point3 . origin d = Vector3 . new ( @offset_x + p_film . x * @dx , @offset_y + p_film . y * @dy , 1.0 ) Ray3 . new ( o , d ) end
Returns a ray for the given film point.
Returns a ray for the given film point .
None
Ray3
p_film
<not_specific>
<not_specific>
None