abstract struct RayTracerChallenge::Common

Overview

Common code shared by Point and Vector

Direct Known Subclasses

Defined in:

ray_tracer_challenge/common.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x, y, z) #

[View source]

Instance Method Detail

def - #

note: maybe use #neg or #negate instead?


[View source]
def div(scalar) #

[View source]
def mul(scalar) #

[View source]
def point? #

[View source]
def vector? #

[View source]
def w #

[View source]
def x : Float64 #

[View source]
def y : Float64 #

[View source]
def z : Float64 #

[View source]