struct Normal

Included Modules

Defined in:

vector.cr

Constructors

Instance Method Summary

Instance methods inherited from module Vectorlike

[](axis) [], max_axis max_axis, max_component max_component, to_point to_point, to_tuple to_tuple, to_vector to_vector

Constructor Detail

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

[View source]

Instance Method Detail

def *(other : Float64) #

[View source]
def +(other : Normal) #

[View source]
def -(other : Normal) #

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

[View source]
def face_forward(v) #

[View source]
def refract(wi : Vector, eta : Float64) : Vector? #

[View source]