Class vec3

Vector3.

menori.ml.vec3

Functions

vec3.is_vec3 (a) is vec3
vec3.dot (a, b) dot
vec3.distance (p0, p1) distance
vec3.fract (a) fract
vec3.cross (a, b) cross
vec3.lerp (a, b, s) lerp
vec3.min (a, b) min
vec3.abs (a) abs
vec3.equal (a, b) equal
vec3.notEqual (a, b) notEqual
vec3.lessThan (a, b) lessThan
vec3.lessThanEqual (a, b) lessThanEqual
vec3.greaterThan (a, b) greaterThan
vec3.greaterThanEqual (a, b) greaterThanEqual
vec3.pow (a, b) pow

Methods

vec3:clone () clone
vec3:set (x, y, z) set
vec3:add (a, b) add
vec3:sub (a, b) sub
vec3:add_scalar (scalar) add_scalar
vec3:sub_scalar (scalar) add_scalar
vec3:mul (a, b) mul
vec3:div (a, b) div
vec3:scale (scalar) scale
vec3:length () length
vec3:length2 () length2
vec3:normalize () normalize
vec3:round () round
vec3:unpack () unpack
vec3:set_from_matrix_position (m) set from matrix position
vec3:max (a, b) max


Functions

vec3.is_vec3 (a)
is vec3

Parameters:

  • a
vec3.dot (a, b)
dot

Parameters:

  • a
  • b
vec3.distance (p0, p1)
distance

Parameters:

  • p0
  • p1
vec3.fract (a)
fract

Parameters:

  • a
vec3.cross (a, b)
cross

Parameters:

  • a
  • b
vec3.lerp (a, b, s)
lerp

Parameters:

  • a
  • b
  • s
vec3.min (a, b)
min

Parameters:

  • a
  • b
vec3.abs (a)
abs

Parameters:

  • a
vec3.equal (a, b)
equal

Parameters:

  • a
  • b
vec3.notEqual (a, b)
notEqual

Parameters:

  • a
  • b
vec3.lessThan (a, b)
lessThan

Parameters:

  • a
  • b
vec3.lessThanEqual (a, b)
lessThanEqual

Parameters:

  • a
  • b
vec3.greaterThan (a, b)
greaterThan

Parameters:

  • a
  • b
vec3.greaterThanEqual (a, b)
greaterThanEqual

Parameters:

  • a
  • b
vec3.pow (a, b)
pow

Parameters:

  • a
  • b

Methods

vec3:clone ()
clone
vec3:set (x, y, z)
set

Parameters:

  • x
  • y
  • z
vec3:add (a, b)
add

Parameters:

  • a
  • b
vec3:sub (a, b)
sub

Parameters:

  • a
  • b
vec3:add_scalar (scalar)
add_scalar

Parameters:

  • scalar
vec3:sub_scalar (scalar)
add_scalar

Parameters:

  • scalar
vec3:mul (a, b)
mul

Parameters:

  • a
  • b
vec3:div (a, b)
div

Parameters:

  • a
  • b
vec3:scale (scalar)
scale

Parameters:

  • scalar
vec3:length ()
length
vec3:length2 ()
length2
vec3:normalize ()
normalize
vec3:round ()
round
vec3:unpack ()
unpack
vec3:set_from_matrix_position (m)
set from matrix position

Parameters:

  • m
vec3:max (a, b)
max

Parameters:

  • a
  • b
generated by LDoc 1.4.6 Last updated 2023-03-21 17:41:24