struct RayTracerChallenge::Vector

Defined in:

ray_tracer_challenge/vector.cr

Instance Method Summary

Instance methods inherited from struct RayTracerChallenge::Common

- -, div(scalar) div, mul(scalar) mul, point? point?, vector? vector?, w w, x : Float64 x, y : Float64 y, z : Float64 z

Constructor methods inherited from struct RayTracerChallenge::Common

new(x, y, z) new

Instance Method Detail

def add(other : Vector) #

[View source]
def add(other : Point) #

[View source]
def cross(other : Vector) #

[View source]
def dot(other : Vector) #

[View source]
def magnitude #

[View source]
def normalize #

[View source]
def sub(other : Vector) #

[View source]
def sub(other : Point) #

[View source]
def to_tuple #

[View source]
def vector? #

[View source]