class Hitable::DistanceEstimator

Defined in:

hitables/distance_estimator.cr

Constructors

Instance Method Summary

Instance methods inherited from class Hitable

area : Float64 area, area_light : Light? area_light, area_light=(area_light : Light?) area_light=, hit(ray : Ray) : HitRecord? hit, pdf(point : Point, wi : Vector) : Float64
pdf(point : Point) : Float64
pdf
, rotate(axis : Vector, degrees : Float64) : Hitable rotate, rotate_x(degrees : Float64) : Hitable rotate_x, rotate_y(degrees : Float64) : Hitable rotate_y, rotate_z(degrees : Float64) : Hitable rotate_z, sample(origin) : ::Tuple(Point, Normal)
sample : ::Tuple(Point, Normal)
sample
, scale(size : Float64) : Hitable scale, translate(offset : Vector) : Hitable translate

Constructor Detail

def self.new(material, object, step = EPSILON, maximum_steps = 1000, minimum_distance = EPSILON) #

[View source]

Instance Method Detail

def distance_estimate(pos) #

[View source]
def hit(ray) #

[View source]
def material : Material #

[View source]
def material=(material : Material) #

[View source]
def maximum_steps : Int32 #

[View source]
def maximum_steps=(maximum_steps : Int32) #

[View source]
def minimum_distance : Float64 #

[View source]
def minimum_distance=(minimum_distance : Float64) #

[View source]
def object : DE::DistanceEstimatable #

[View source]
def object=(object : DE::DistanceEstimatable) #

[View source]
def step : Float64 #

[View source]
def step=(step : Float64) #

[View source]