class Camera::Perspective
- Camera::Perspective
- Camera
- Reference
- Object
Defined in:
camera.crConstructors
- .new(look_from : Point, look_at : Point, up : Vector, vertical_fov : Float64, dimensions : Tuple(Int32, Int32), aperture : Float64, focus_distance : Float64)
- .new(look_from : Point, look_at : Point, vertical_fov : Float64, dimensions : Tuple(Int32, Int32), up = Vector.y, aperture = 0.0)
Instance Method Summary
- #generate_ray(s, t, t_min, t_max)
- #horizontal : Vector
- #lens_radius : Float64
- #lower_left_corner : Point
- #u : Vector
- #v : Vector
- #vertical : Vector
- #w : Vector
Instance methods inherited from class Camera
generate_ray(x : Float64, y : Float64, t_min : Float64, t_max : Float64) : Ray
generate_ray
Constructor Detail
def self.new(look_from : Point, look_at : Point, up : Vector, vertical_fov : Float64, dimensions : Tuple(Int32, Int32), aperture : Float64, focus_distance : Float64)
#
def self.new(look_from : Point, look_at : Point, vertical_fov : Float64, dimensions : Tuple(Int32, Int32), up = Vector.y, aperture = 0.0)
#