Vector Class
Module: Math
Vector class
Constructor
Vector
(
-
x
-
y
-
z
Parameters:
-
x
FloatX position
-
y
FloatY position
-
z
FloatZ position
Item Index
Methods
cross
(
Vector
-
v
Cross product
Parameters:
-
v
VectorVector to cross
Returns:
Vector:
Cross product of two vectors
divide
(
Vector
-
v
Divide vector
Parameters:
-
v
VectorVector to divide
Returns:
Vector:
quotient of two vectors
dot
(
Vector
-
v
Dot product
Parameters:
-
v
VectorVector
Returns:
Vector:
Dot product of two vectors
length
()
Float
Returns the length of vector
Returns:
Float:
legth of vector
max
()
Float
Returns the maximum value of vector absolute axes
Returns:
Float:
max value of (abs(x),abs(y),abs(z))
max
()
Float
Returns the maximum value of vector axes
Returns:
Float:
max value of (x,y,z)
min
()
Float
Returns the minimum value of vector axes
Returns:
Float:
min value of (x,y,z)
min
()
Float
Returns the minimum value of vector axes
Returns:
Float:
min value of (x,y,z)
multiply
(
Vector
-
v
Multiply vector
Parameters:
-
v
VectorVector to multiply
Returns:
Vector:
product of two vectors
subtract
(
Vector
-
v
Subtract vector
Parameters:
-
v
VectorVector to subtract
Returns:
Vector:
difference of two vectors
toArray
()
Array3
Returns the array of axes
Returns:
Array3:
Array [x,y,z]