Tres::Matrix4
Inherits Reference < Object
Constants
DIMENSIONS = 4
Constructors
new
SourceInstance methods
apply_to_vector3_array(array, offset = 0, length = array.length)
Sourceclone
Sourcecompose(position, quaternion, scale)
Sourcecopy(m)
Sourcecopy_position(m)
Sourcedecompose(position, quaternion, scale)
Sourcedeterminant
Sourceelements
Sourceelements=(elements : Array(Float32))
Sourceextract_basis(x_axis, y_axis, z_axis)
Sourceextract_rotation(m)
Sourceflatten_to_array_offset(array, offset)
Sourcefrom_array(array)
Sourceidentity
Sourceinverse(m, throw_on_invertable = false)
Sourcelook_at(eye, target, up)
Sourcemake_basis(x_axis, y_axis, z_axis)
Sourcemake_frustum(left, right, bottom, top, near, far)
Sourcemake_orthographic(left, right, top, bottom, near, far)
Sourcemake_perspective(fov, aspect, near, far)
Sourcemake_rotation_axis(axis, angle)
Sourcemake_rotation_from_euler(euler)
Sourcemake_rotation_from_quaternion(q)
Sourcemake_rotation_x(theta)
Sourcemake_rotation_y(theta)
Sourcemake_rotation_z(theta)
Sourcemake_scale(x, y, z)
Sourcemake_translation(x, y, z)
Sourcemax_scale_on_axis
Sourcemultiply(m)
Sourcemultiply_matrices(a, b)
Sourcemultiply_scalar(s)
Sourcemultiply_to_array(a, b, r)
Sourcescale(v)
Sourceset(n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44)
Sourceset_position(v)
Sourceto_a
Sourcetranspose
Source