new Vector2(xopt, yopt)
a vector 2 class
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x |
number |
<optional> |
0 | |
y |
number |
<optional> |
0 |
- Source:
Methods
add()
- Source:
addVectors()
- Source:
angle()
- Source:
clone()
- Source:
copy()
- Source:
distanceTo()
- Source:
distanceToSquared()
- Source:
fromArray()
- Source:
getLength()
- Source:
getLengthSquared()
- Source:
lerpVectors()
- Source:
max()
- Source:
min()
- Source:
multiplyScalar()
- Source:
normalize()
- Source:
set()
- Source:
sub()
- Source:
subtract()
- Source:
subVectors()
- Source: