Class THREE.Vector2
Defined in: Vector2.js.
Constructor Attributes | Constructor Name and Description |
---|---|
THREE.Vector2(x, y)
|
Method Attributes | Method Name and Description |
---|---|
add(a, b)
|
|
addSelf(v)
|
|
clone()
|
|
copy(v)
|
|
distanceTo(v)
|
|
divideScalar(s)
|
|
dot(v)
|
|
equals(v)
|
|
length()
|
|
lengthSq()
|
|
lerpSelf(v, alpha)
|
|
negate()
|
|
set(x, y)
|
|
setLength(l)
|
|
sub(a, b)
|
|
subSelf(v)
|
Method Detail
add(a, b)
- Parameters:
- a
- b
addSelf(v)
- Parameters:
- v
clone()
copy(v)
- Parameters:
- v
distanceTo(v)
- Parameters:
- v
distanceToSquared(v)
- Parameters:
- v
divideScalar(s)
- Parameters:
- s
dot(v)
- Parameters:
- v
equals(v)
- Parameters:
- v
length()
lengthSq()
lerpSelf(v, alpha)
- Parameters:
- v
- alpha
multiplyScalar(s)
- Parameters:
- s
negate()
normalize()
set(x, y)
- Parameters:
- x
- y
setLength(l)
- Parameters:
- l
sub(a, b)
- Parameters:
- a
- b
subSelf(v)
- Parameters:
- v