struct VectorMath::Mat4

Overview

4D matrix [x0, x1, x2, x3, y0, y1, y2, y3, z0, z1, z2, z3, w0, w1, w2, w3]

Defined in:

vector_math/matrices.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, y0 : Float64, y1 : Float64, y2 : Float64, y3 : Float64, z0 : Float64, z1 : Float64, z2 : Float64, z3 : Float64, w0 : Float64, w1 : Float64, w2 : Float64, w3 : Float64) #

[View source]
def self.new(values : Array(Float64)) #

[View source]

Class Method Detail

def self.unit #

[View source]

Instance Method Detail

def *(other : Mat4) #

[View source]
def *(other : Vec4) #

[View source]
def +(other) #

[View source]
def -(other) #

[View source]
def rotate_x(deg : Float64) #

[View source]
def rotate_y(deg : Float64) #

[View source]
def rotate_z(deg : Float64) #

[View source]
def rotation #

returns the rotation component of the matrix


[View source]
def translate(vec : Vec3) #

[View source]
def w0 : Float64 #

[View source]
def w1 : Float64 #

[View source]
def w2 : Float64 #

[View source]
def w3 : Float64 #

[View source]
def x0 : Float64 #

[View source]
def x1 : Float64 #

[View source]
def x2 : Float64 #

[View source]
def x3 : Float64 #

[View source]
def y0 : Float64 #

[View source]
def y1 : Float64 #

[View source]
def y2 : Float64 #

[View source]
def y3 : Float64 #

[View source]
def z0 : Float64 #

[View source]
def z1 : Float64 #

[View source]
def z2 : Float64 #

[View source]
def z3 : Float64 #

[View source]