LuaSTG-x Core API
math::vec4 Class Reference

Public Member Functions

function __add (local other)
 
function __div (local other)
 
function __eq (local other)
 
function __mul (local other)
 
function __sub (local other)
 
function __tostring ()
 
function __unm ()
 
function add (local other)
 
function clamp (local min, local max)
 
function clone ()
 
function distance (local other)
 
function distanceSquared (local other)
 
function dot (local other)
 
function fuzzyEquals (local other, local var)
 
function getClamped (local min, local max)
 
function getNormalized ()
 
function getScaled (local scalar)
 
function isFinite ()
 
function isOne ()
 
function isZero ()
 
function length ()
 
function lengthSquared ()
 
function lerp (local target, local alpha)
 
function negate ()
 
function normalize ()
 
static function one ()
 
function scale (local scalar)
 
function set (local xx, local yy, local zz, local ww)
 
function setZero ()
 
function smooth (local target, local elapsedTime, local responseTime)
 
function subtract (local other)
 
static function zero ()
 

Public Attributes

table __index
 
number w
 
number x
 
number y
 
number z
 

Member Function Documentation

◆ __add()

function __add ( local  other)

◆ __div()

function __div ( local  other)

◆ __eq()

function __eq ( local  other)

◆ __mul()

function __mul ( local  other)

◆ __sub()

function __sub ( local  other)

◆ __tostring()

function __tostring ( )

◆ __unm()

function __unm ( )

◆ add()

function add ( local  other)

◆ clamp()

function clamp ( local  min,
local  max 
)

◆ clone()

function clone ( )

◆ distance()

function distance ( local  other)

◆ distanceSquared()

function distanceSquared ( local  other)

◆ dot()

function dot ( local  other)

◆ fuzzyEquals()

function fuzzyEquals ( local  other,
local  var 
)

◆ getClamped()

function getClamped ( local  min,
local  max 
)

◆ getNormalized()

function getNormalized ( )

◆ getScaled()

function getScaled ( local  scalar)

◆ isFinite()

function isFinite ( )

◆ isOne()

function isOne ( )

◆ isZero()

function isZero ( )

◆ length()

function length ( )

◆ lengthSquared()

function lengthSquared ( )

◆ lerp()

function lerp ( local  target,
local  alpha 
)

◆ negate()

function negate ( )

◆ normalize()

function normalize ( )

◆ one()

static function one ( )

◆ scale()

function scale ( local  scalar)

◆ set()

function set ( local  xx,
local  yy,
local  zz,
local  ww 
)

◆ setZero()

function setZero ( )

◆ smooth()

function smooth ( local  target,
local  elapsedTime,
local  responseTime 
)

◆ subtract()

function subtract ( local  other)

◆ zero()

static function zero ( )

Member Data Documentation

◆ __index

table __index

◆ w

number w

◆ x

number x

◆ y

number y

◆ z

number z

The documentation for this class was generated from the following file: