Preparing search index...
The search index is not available
@akashic-extension/raycaster-js
@akashic-extension/raycaster-js
Vec3
Class Vec3
Hierarchy
Vec3
Index
Constructors
constructor
Properties
x
y
z
zero
Methods
add
clone
cross
dot
length
normalize
rotateX
rotateY
rotateZ
scale
squared
Length
sub
cross
dot
Constructors
constructor
new
Vec3
(
xOrVector3Like
?:
number
|
Vector3Like
, y
?:
number
, z
?:
number
)
:
Vec3
Parameters
Optional
xOrVector3Like:
number
|
Vector3Like
y:
number
= 0
z:
number
= 0
Returns
Vec3
Properties
x
x
:
number
y
y
:
number
z
z
:
number
Static
Readonly
zero
zero
:
{
x
:
number
;
y
:
number
;
z
:
number
}
= ...
Type declaration
x
:
number
y
:
number
z
:
number
Methods
add
add
(
other
:
Vector3Like
)
:
Vec3
Parameters
other:
Vector3Like
Returns
Vec3
clone
clone
(
)
:
Vec3
Returns
Vec3
cross
cross
(
other
:
Vector3Like
)
:
Vec3
Parameters
other:
Vector3Like
Returns
Vec3
dot
dot
(
other
:
Vector3Like
)
:
number
Parameters
other:
Vector3Like
Returns
number
length
length
(
)
:
number
Returns
number
normalize
normalize
(
)
:
Vec3
Returns
Vec3
rotateX
rotateX
(
angle
:
number
)
:
Vec3
Parameters
angle:
number
Returns
Vec3
rotateY
rotateY
(
angle
:
number
)
:
Vec3
Parameters
angle:
number
Returns
Vec3
rotateZ
rotateZ
(
angle
:
number
)
:
Vec3
Parameters
angle:
number
Returns
Vec3
scale
scale
(
value
:
number
)
:
Vec3
Parameters
value:
number
Returns
Vec3
squared
Length
squared
Length
(
)
:
number
Returns
number
sub
sub
(
other
:
Vector3Like
)
:
Vec3
Parameters
other:
Vector3Like
Returns
Vec3
Static
cross
cross
(
v1
:
Vector3Like
, v2
:
Vector3Like
)
:
Vector3Like
Parameters
v1:
Vector3Like
v2:
Vector3Like
Returns
Vector3Like
Static
dot
dot
(
v1
:
Vector3Like
, v2
:
Vector3Like
)
:
number
Parameters
v1:
Vector3Like
v2:
Vector3Like
Returns
number
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@akashic-
extension/raycaster-
js
Vec3
constructor
x
y
z
zero
add
clone
cross
dot
length
normalize
rotateX
rotateY
rotateZ
scale
squared
Length
sub
cross
dot
Generated using
TypeDoc