struct CrystalRayTracer::Vector

Defined in:

crystal_ray_tracer/vector.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]

Class Method Detail

def self.cross(v1, v2) #

[View source]
def self.dot(v1, v2) #

[View source]
def self.mag(v) #

[View source]
def self.minus(v1, v2) #

[View source]
def self.norm(v) #

[View source]
def self.plus(v1, v2) #

[View source]
def self.scale(k, v) #

[View source]

Instance Method Detail

def x : Float64 #

[View source]
def y : Float64 #

[View source]
def z : Float64 #

[View source]