struct Float64

Included Modules

Defined in:

ray_tracer_challenge/core_extensions.cr

Instance Method Summary

Instance methods inherited from module RayTracerChallenge::Transform::CoreExtensions::Float64

rotation_x rotation_x, rotation_y rotation_y, rotation_z rotation_z

Instance Method Detail

def clamp(max, min) #
Description copied from module Comparable(Number)

Clamps a value between min and max.

5.clamp(10, 100)   # => 10
50.clamp(10, 100)  # => 50
500.clamp(10, 100) # => 100

5.clamp(10, nil)  # => 10
50.clamp(10, nil) # => 50

5.clamp(nil, 10)  # => 5
50.clamp(nil, 10) # => 10

[View source]
def equivalent(other : Float64, delta = Float64::EPSILON) #

[View source]
def to_color_255 #

[View source]