Class vec4
Vector4.
menori.ml.vec4
Functions
vec4.is_vec4 (a) | is vec4 |
vec4.dot (a, b) | dot |
vec4.fract (a) | fract |
vec4.lerp (a, b, s) | lerp |
vec4.min (a, b) | min |
vec4.max (a, b) | max |
vec4.abs (a) | abs |
vec4.equal (a, b) | equal |
vec4.notEqual (a, b) | notEqual |
vec4.lessThan (a, b) | lessThan |
vec4.lessThanEqual (a, b) | lessThanEqual |
vec4.greaterThan (a, b) | greaterThan |
vec4.greaterThanEqual (a, b) | greaterThanEqual |
vec4.pow (a, b) | pow |
Methods
vec4:clone () | clone |
vec4:set (x, y, z, w) | set |
vec4:add (a, b) | add |
vec4:sub (a, b) | sub |
vec4:mul (a, b) | mul |
vec4:div (a, b) | div |
vec4:scale (scalar) | scale |
vec4:length () | length |
vec4:normalize () | normalize |
vec4:round () | round |
vec4:unpack () | unpack |
Functions
- vec4.is_vec4 (a)
-
is vec4
Parameters:
- a
- vec4.dot (a, b)
-
dot
Parameters:
- a
- b
- vec4.fract (a)
-
fract
Parameters:
- a
- vec4.lerp (a, b, s)
-
lerp
Parameters:
- a
- b
- s
- vec4.min (a, b)
-
min
Parameters:
- a
- b
- vec4.max (a, b)
-
max
Parameters:
- a
- b
- vec4.abs (a)
-
abs
Parameters:
- a
- vec4.equal (a, b)
-
equal
Parameters:
- a
- b
- vec4.notEqual (a, b)
-
notEqual
Parameters:
- a
- b
- vec4.lessThan (a, b)
-
lessThan
Parameters:
- a
- b
- vec4.lessThanEqual (a, b)
-
lessThanEqual
Parameters:
- a
- b
- vec4.greaterThan (a, b)
-
greaterThan
Parameters:
- a
- b
- vec4.greaterThanEqual (a, b)
-
greaterThanEqual
Parameters:
- a
- b
- vec4.pow (a, b)
-
pow
Parameters:
- a
- b
Methods
- vec4:clone ()
- clone
- vec4:set (x, y, z, w)
-
set
Parameters:
- x
- y
- z
- w
- vec4:add (a, b)
-
add
Parameters:
- a
- b
- vec4:sub (a, b)
-
sub
Parameters:
- a
- b
- vec4:mul (a, b)
-
mul
Parameters:
- a
- b
- vec4:div (a, b)
-
div
Parameters:
- a
- b
- vec4:scale (scalar)
-
scale
Parameters:
- scalar
- vec4:length ()
- length
- vec4:normalize ()
- normalize
- vec4:round ()
- round
- vec4:unpack ()
- unpack