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