Preparing search index...
The search index is not available
@spissvinkel/maths - v1.2.0
@spissvinkel/maths
vec2
unitX
Function unitX
unitX
(
)
:
Vec2
Creates a new 2D unit vector along the x-axis
Returns
Vec2
the new 2D unit vector
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
@spissvinkel/maths -
v1.2.0
index
mat2
mat3
mat4
maths
vec2
of
ofV
zero
one
unitX
unitY
set
Zero
set
One
set
UnitX
set
UnitY
setV
set
addV
addVInto
subV
subVInto
add
Mul
add
Mul
Into
mulV
mulVInto
mul
mul
Into
divV
divVInto
div
div
Into
inv
inv
Into
sqr
Mag
mag
norm
norm
Into
norm
For
norm
For
Into
dot
perp
Into
clampV
clampVInto
clamp
clamp
Into
clamp01
clamp01
Into
lerp
lerpE
lerp2
equals
to
String
vec3
vec4
Generated using
TypeDoc
Creates a new 2D unit vector along the x-axis