ts-vector-math
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Vector3
constructor
_values
x
xy
xyz
y
z
backward
down
forward
left
one
right
up
zero
add
at
copy
divide
equals
length
multiply
negate
normalize
reset
scale
squared
Length
subtract
cross
difference
direction
distance
dot
lerp
product
quotient
squared
Distance
sum
Hierarchy
Vector3
Index
Constructors
constructor
Properties
_values
Accessors
x
xy
xyz
y
z
backward
down
forward
left
one
right
up
zero
Methods
add
at
copy
divide
equals
length
multiply
negate
normalize
reset
scale
squared
Length
subtract
cross
difference
direction
distance
dot
lerp
product
quotient
squared
Distance
sum
Constructors
constructor
new
Vector3
(
values
?:
number
[]
)
:
Vector3
Parameters
Optional
values:
number
[]
Returns
Vector3
Properties
Private
_values
_values
:
Float32Array
= new Float32Array(3)
Accessors
x
x
:
xy
xy
:
xyz
xyz
:
y
y
:
z
z
:
Static
backward
backward
:
Static
down
down
:
Static
forward
forward
:
Static
left
left
:
Static
one
one
:
Static
right
right
:
Static
up
up
:
Static
zero
zero
:
Methods
add
add
(
vector
:
Vector3
, dest
?:
Vector3
)
:
Vector3
Parameters
vector:
Vector3
Optional
dest:
Vector3
Returns
Vector3
at
at
(
index
:
number
)
:
number
Parameters
index:
number
Returns
number
copy
copy
(
dest
?:
Vector3
)
:
Vector3
Parameters
Optional
dest:
Vector3
Returns
Vector3
divide
divide
(
vector
:
Vector3
, dest
?:
Vector3
)
:
Vector3
Parameters
vector:
Vector3
Optional
dest:
Vector3
Returns
Vector3
equals
equals
(
other
:
Vector3
, threshold
?:
number
)
:
boolean
Parameters
other:
Vector3
Default value
threshold:
number
= EPSILON
Returns
boolean
length
length
(
)
:
number
Returns
number
multiply
multiply
(
vector
:
Vector3
, dest
?:
Vector3
)
:
Vector3
Parameters
vector:
Vector3
Optional
dest:
Vector3
Returns
Vector3
negate
negate
(
dest
?:
Vector3
)
:
Vector3
Parameters
Optional
dest:
Vector3
Returns
Vector3
normalize
normalize
(
dest
?:
Vector3
)
:
Vector3
Parameters
Optional
dest:
Vector3
Returns
Vector3
reset
reset
(
)
:
void
Returns
void
scale
scale
(
value
:
number
, dest
?:
Vector3
)
:
Vector3
Parameters
value:
number
Optional
dest:
Vector3
Returns
Vector3
squared
Length
squared
Length
(
)
:
number
Returns
number
subtract
subtract
(
vector
:
Vector3
, dest
?:
Vector3
)
:
Vector3
Parameters
vector:
Vector3
Optional
dest:
Vector3
Returns
Vector3
Static
cross
cross
(
vector
:
Vector3
, vector2
:
Vector3
, dest
?:
Vector3
)
:
Vector3
Parameters
vector:
Vector3
vector2:
Vector3
Optional
dest:
Vector3
Returns
Vector3
Static
difference
difference
(
vector
:
Vector3
, vector2
:
Vector3
, dest
?:
Vector3
)
:
Vector3
Parameters
vector:
Vector3
vector2:
Vector3
Optional
dest:
Vector3
Returns
Vector3
Static
direction
direction
(
vector
:
Vector3
, vector2
:
Vector3
, dest
?:
Vector3
)
:
Vector3
Parameters
vector:
Vector3
vector2:
Vector3
Optional
dest:
Vector3
Returns
Vector3
Static
distance
distance
(
vector
:
Vector3
, vector2
:
Vector3
)
:
number
Parameters
vector:
Vector3
vector2:
Vector3
Returns
number
Static
dot
dot
(
vector
:
Vector3
, vector2
:
Vector3
)
:
number
Parameters
vector:
Vector3
vector2:
Vector3
Returns
number
Static
lerp
lerp
(
a
:
Vector3
, b
:
Vector3
, t
:
number
, dest
?:
Vector3
)
:
Vector3
Parameters
a:
Vector3
b:
Vector3
t:
number
Optional
dest:
Vector3
Returns
Vector3
Static
product
product
(
vector
:
Vector3
, vector2
:
Vector3
, dest
?:
Vector3
)
:
Vector3
Parameters
vector:
Vector3
vector2:
Vector3
Optional
dest:
Vector3
Returns
Vector3
Static
quotient
quotient
(
vector
:
Vector3
, vector2
:
Vector3
, dest
?:
Vector3
)
:
Vector3
Parameters
vector:
Vector3
vector2:
Vector3
Optional
dest:
Vector3
Returns
Vector3
Static
squared
Distance
squared
Distance
(
vector
:
Vector3
, vector2
:
Vector3
)
:
number
Parameters
vector:
Vector3
vector2:
Vector3
Returns
number
Static
sum
sum
(
vector
:
Vector3
, vector2
:
Vector3
, dest
?:
Vector3
)
:
Vector3
Parameters
vector:
Vector3
vector2:
Vector3
Optional
dest:
Vector3
Returns
Vector3
Generated using
TypeDoc