class Camera::Perspective

Defined in:

camera.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(look_from : Point, look_at : Point, vertical_fov : Float64, dimensions : Tuple(Int32, Int32), up = Vector.y, aperture = 0.0) #

[View source]

Instance Method Detail

def generate_ray(s, t, t_min, t_max) #

[View source]
def horizontal : Vector #

[View source]
def lens_radius : Float64 #

[View source]
def lower_left_corner : Point #

[View source]
def u : Vector #

[View source]
def v : Vector #

[View source]
def vertical : Vector #

[View source]
def w : Vector #

[View source]