module Boleite::Matrix

Defined in:

boleite/math/matrix.cr

Class Method Summary

Class Method Detail

def self.calculate_fov_projection(fov : T, aspect : T, near : T, far : T, left_handed : Bool) forall T #

[View source]
def self.calculate_ortho_projection(left : T, right : T, top : T, bottom : T, near : T, far : T) forall T #

[View source]
def self.forward(mat : MatrixImp(T, 4, 16)) forall T #

[View source]
def self.inverse(matrix : MatrixImp(T, 3, 9)) forall T #

[View source]
def self.inverse(matrix : MatrixImp(T, 4, 16)) forall T #

[View source]
def self.left(mat : MatrixImp(T, 4, 16)) forall T #

[View source]
def self.mul(left : MatrixImp(T, 3, 9), right : MatrixImp(T, 3, 9)) forall T #

[View source]
def self.mul(left : MatrixImp(T, 4, 16), right : MatrixImp(T, 4, 16)) forall T #

[View source]
def self.mul(left : MatrixImp(T, 3, 9), right : VectorImp(T, 3)) forall T #

[View source]
def self.mul(left : MatrixImp(T, 4, 16), right : VectorImp(T, 4)) forall T #

[View source]
def self.mul(left : MatrixImp(T, 4, 16), right : VectorImp(T, 2)) forall T #

[View source]
def self.rotate_around_x(matrix : MatrixImp(T, 4, 16), angle : T) forall T #

[View source]
def self.rotate_around_y(matrix : MatrixImp(T, 4, 16), angle : T) forall T #

[View source]
def self.rotate_around_z(matrix : MatrixImp(T, 4, 16), angle : T) forall T #

[View source]
def self.scale(matrix : MatrixImp(T, 3, 9), scale : VectorImp(T, 3)) forall T #

[View source]
def self.scale(matrix : MatrixImp(T, 3, 9), scale : T) forall T #

[View source]
def self.scale(matrix : MatrixImp(T, 4, 16), scale : VectorImp(T, 4)) forall T #

[View source]
def self.scale(matrix : MatrixImp(T, 4, 16), scale : T) forall T #

[View source]
def self.translate(matrix : MatrixImp(T, 4, 16), translation : VectorImp(T, 3)) forall T #

[View source]
def self.transpose(mat : MatrixImp(T, N, M)) forall T, N, M #

[View source]
def self.up(mat : MatrixImp(T, 4, 16)) forall T #

[View source]