class RayTracerChallenge::Ray

Defined in:

ray_tracer_challenge/ray.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(origin : RayTracerChallenge::Point, direction : RayTracerChallenge::Vector) #

[View source]

Instance Method Detail

def calculate_intersects(sphere : Sphere) #

[View source]
def direction : Vector #

[View source]
def intersects(sphere : Sphere) #

[View source]
def origin : Point #

[View source]
def position(ticks) #

[View source]
def transform(matrix : SquareMatrix) #

[View source]