Class mat4

Matrix4.

menori.ml.mat4

Functions

mat4.is_mat4 (a) is mat4
mat4.unproject (win, model, proj, viewport) unproject

Methods

mat4:to_temp_transform_object () to temp transform object
mat4:to_table () to table
mat4:clone () clone
mat4:copy (other) copy
mat4:identity () identity
mat4:is_identity () is identity
mat4:multiply (other) multiply
mat4:determinant () determinant
mat4:inverse () inverse
mat4:transpose () transpose
mat4:compose (position, rotation, scale) compose
mat4:decompose (position, rotation, scale) decompose
mat4:set_position_and_rotation (position, angle, axis) set position and rotation
mat4:scale (x, y, z) scale
mat4:translate (x, y, z) translate
mat4:shear (yx, xy, zx, zy, xz, yz) shear
mat4:rotate (angle, axis) rotate
mat4:reflect (position, normal) reflect
mat4:multiply_vec4 (v, out) multiply vec4
mat4:multiply_vec3 (v, out) multiply vec3
mat4:multiply_vec3_array (v, out) multiply vec3 array
mat4:multiply_vec4_array (v, out) multiply vec4 array
mat4:is_changed () is changed
mat4:unpack () unpack


Functions

mat4.is_mat4 (a)
is mat4

Parameters:

  • a
mat4.unproject (win, model, proj, viewport)
unproject

Parameters:

  • win
  • model
  • proj
  • viewport

Methods

mat4:to_temp_transform_object ()
to temp transform object
mat4:to_table ()
to table
mat4:clone ()
clone
mat4:copy (other)
copy

Parameters:

  • other
mat4:identity ()
identity
mat4:is_identity ()
is identity
mat4:multiply (other)
multiply

Parameters:

  • other
mat4:determinant ()
determinant
mat4:inverse ()
inverse
mat4:transpose ()
transpose
mat4:compose (position, rotation, scale)
compose

Parameters:

  • position
  • rotation
  • scale
mat4:decompose (position, rotation, scale)
decompose

Parameters:

  • position
  • rotation
  • scale
mat4:set_position_and_rotation (position, angle, axis)
set position and rotation

Parameters:

  • position
  • angle
  • axis
mat4:scale (x, y, z)
scale

Parameters:

  • x
  • y
  • z
mat4:translate (x, y, z)
translate

Parameters:

  • x
  • y
  • z
mat4:shear (yx, xy, zx, zy, xz, yz)
shear

Parameters:

  • yx
  • xy
  • zx
  • zy
  • xz
  • yz
mat4:rotate (angle, axis)
rotate

Parameters:

  • angle
  • axis
mat4:reflect (position, normal)
reflect

Parameters:

  • position
  • normal
mat4:multiply_vec4 (v, out)
multiply vec4

Parameters:

  • v
  • out
mat4:multiply_vec3 (v, out)
multiply vec3

Parameters:

  • v
  • out
mat4:multiply_vec3_array (v, out)
multiply vec3 array

Parameters:

  • v
  • out
mat4:multiply_vec4_array (v, out)
multiply vec4 array

Parameters:

  • v
  • out
mat4:is_changed ()
is changed
mat4:unpack ()
unpack
generated by LDoc 1.4.6 Last updated 2023-03-21 17:41:24