Preparing search index...
The search index is not available
xray16
xray16
vector
Class vector
Source
C++ class XR_vector
Custom Constructor
vector
Index
Constructors
constructor
Properties
x
y
z
Methods
abs
add
align
average
clamp
crossproduct
distance_
to
distance_
to_
sqr
distance_
to_
xz
div
dotproduct
getH
getP
inertion
invert
lerp
mad
magnitude
max
min
mul
normalize
normalize_
safe
reflect
set
set_
length
setHP
similar
slide
sub
Constructors
constructor
new
vector
()
:
vector
Returns
vector
Properties
x
x
:
number
y
y
:
number
z
z
:
number
Methods
abs
abs
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
add
add
(
val
:
number
)
:
vector
Parameters
val
:
number
Returns
vector
add
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
add
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
add
(
vector
:
Readonly
<
vector
>
,
val
:
number
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
val
:
number
Returns
vector
align
align
()
:
vector
Returns
vector
average
average
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
average
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
clamp
clamp
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
clamp
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
crossproduct
crossproduct
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
distance_
to
distance_to
(
vector
:
Readonly
<
vector
>
)
:
number
Parameters
vector
:
Readonly
<
vector
>
Returns
number
distance_
to_
sqr
distance_to_sqr
(
vector
:
Readonly
<
vector
>
)
:
number
Parameters
vector
:
Readonly
<
vector
>
Returns
number
distance_
to_
xz
distance_to_xz
(
vector
:
Readonly
<
vector
>
)
:
number
Parameters
vector
:
Readonly
<
vector
>
Returns
number
div
div
(
val
:
number
)
:
vector
Parameters
val
:
number
Returns
vector
div
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
div
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
div
(
vector
:
Readonly
<
vector
>
,
val
:
number
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
val
:
number
Returns
vector
dotproduct
dotproduct
(
vector
:
Readonly
<
vector
>
)
:
number
Parameters
vector
:
Readonly
<
vector
>
Returns
number
getH
getH
()
:
number
Returns
number
getP
getP
()
:
number
Returns
number
inertion
inertion
(
vector
:
Readonly
<
vector
>
,
val
:
number
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
val
:
number
Returns
vector
invert
invert
()
:
vector
Returns
vector
invert
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
lerp
lerp
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
,
val
:
number
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
val
:
number
Returns
vector
mad
mad
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
mad
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
,
val
:
number
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
val
:
number
Returns
vector
mad
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
,
vector3
:
Readonly
<
vector
>
,
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
vector3
:
Readonly
<
vector
>
Returns
vector
mad
(
vector
:
Readonly
<
vector
>
,
val
:
number
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
val
:
number
Returns
vector
magnitude
magnitude
()
:
number
Returns
number
3d vector magnitude value
sqrt(x*x + y*y + z*z)
max
max
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
max
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
min
min
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
min
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
mul
mul
(
val
:
number
)
:
vector
Parameters
val
:
number
Returns
vector
mul
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
mul
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
mul
(
vector
:
Readonly
<
vector
>
,
val
:
number
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
val
:
number
Returns
vector
normalize
normalize
()
:
vector
Returns
vector
normalize
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
normalize_
safe
normalize_safe
()
:
vector
Returns
vector
normalize_safe
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
reflect
reflect
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
set
set
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
set
(
x
:
number
,
y
:
number
,
z
:
number
)
:
vector
Parameters
x
:
number
y
:
number
z
:
number
Returns
vector
set_
length
set_length
(
val
:
number
)
:
vector
Parameters
val
:
number
Returns
vector
setHP
setHP
(
val1
:
number
,
val2
:
number
)
:
vector
Parameters
val1
:
number
val2
:
number
Returns
vector
similar
similar
(
vector
:
Readonly
<
vector
>
,
val
:
number
)
:
boolean
Parameters
vector
:
Readonly
<
vector
>
val
:
number
Returns
boolean
slide
slide
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
sub
sub
(
val
:
number
)
:
vector
Parameters
val
:
number
Returns
vector
sub
(
vector1
:
Readonly
<
vector
>
,
vector2
:
Readonly
<
vector
>
)
:
vector
Parameters
vector1
:
Readonly
<
vector
>
vector2
:
Readonly
<
vector
>
Returns
vector
sub
(
vector
:
Readonly
<
vector
>
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
Returns
vector
sub
(
vector
:
Readonly
<
vector
>
,
val
:
number
)
:
vector
Parameters
vector
:
Readonly
<
vector
>
val
:
number
Returns
vector
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
x
y
z
Methods
abs
add
align
average
clamp
crossproduct
distance_
to
distance_
to_
sqr
distance_
to_
xz
div
dotproduct
getH
getP
inertion
invert
lerp
mad
magnitude
max
min
mul
normalize
normalize_
safe
reflect
set
set_
length
setHP
similar
slide
sub
xray16
Loading...
Source
C++ class XR_vector
Custom Constructor
vector