class Mittsu::Matrix4

Defined in:

mittsu/math/matrix4.cr

Constant Summary

DIMENSIONS = 4

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def apply_to_vector3_array(array, offset = 0, length = array.length) #

[View source]
def clone #

[View source]
def compose(position, quaternion, scale) #

[View source]
def copy(m) #

[View source]
def copy_position(m) #

[View source]
def decompose(position, quaternion, scale) #

[View source]
def determinant #

[View source]
def elements : Array(Float64) #

[View source]
def elements=(elements : Array(Float64)) #

[View source]
def extract_basis(x_axis, y_axis, z_axis) #

[View source]
def extract_rotation(m) #

[View source]
def flatten_to_array_offset(array, offset) #

[View source]
def from_array(array) #

[View source]
def identity #

[View source]
def inverse(m, throw_on_invertable = false) #

[View source]
def look_at(eye, target, up) #

[View source]
def make_basis(x_axis, y_axis, z_axis) #

[View source]
def make_frustum(left, right, bottom, top, near, far) #

[View source]
def make_orthographic(left, right, top, bottom, near, far) #

[View source]
def make_perspective(fov, aspect, near, far) #

[View source]
def make_rotation_axis(axis, angle) #

[View source]
def make_rotation_from_euler(euler) #

[View source]
def make_rotation_from_quaternion(q) #

[View source]
def make_rotation_x(theta) #

[View source]
def make_rotation_y(theta) #

[View source]
def make_rotation_z(theta) #

[View source]
def make_scale(x, y, z) #

[View source]
def make_translation(x, y, z) #

[View source]
def max_scale_on_axis #

[View source]
def multiply(m) #

[View source]
def multiply_matrices(a, b) #

[View source]
def multiply_scalar(s) #

[View source]
def multiply_to_array(a, b, r) #

[View source]
def scale(v) #

[View source]
def set(n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44) #

[View source]
def set_position(v) #

[View source]
def to_a #

[View source]
def transpose #

[View source]