class RayTracerChallenge::SquareMatrix

Included Modules

Extended Modules

Defined in:

ray_tracer_challenge/square_matrix.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module RayTracerChallenge::Transform::Includes

rotate_x(x) rotate_x, rotate_y(y) rotate_y, rotate_z(z) rotate_z, scale(x, y, z) scale, skew(x_to_y = 0, x_to_z = 0, y_to_x = 0, y_to_z = 0, z_to_x = 0, z_to_y = 0) skew, translate(x, y, z) translate

Constructor Detail

def self.new(width : Int32, *args) #

[View source]

Class Method Detail

def self.identity #

[View source]

Instance Method Detail

def ==(other : SquareMatrix) #

[View source]
def at(row : Int32, col : Int32) #

[View source]
def cofactor(row, col) #

[View source]
def determinant #

[View source]
def height #

[View source]
def inverse #

[View source]
def invertable? #

[View source]
def minor(row, col) #

[View source]
def mul(other : SquareMatrix) #

[View source]
def mul(tuple : Tuple) #

[View source]
def mul(point : Point) #

[View source]
def mul(vector : Vector) #

[View source]
def submatrix(row, col) #

[View source]
def to_row_col(i) #

[View source]
def transpose #

[View source]
def width : Int32 #

[View source]
def write(row : Int32, col : Int32, value : Float64) #

[View source]