x value of the vector.
y value of the vector.
Computes this + (pX,pY) and stores it into pOut.
If pOut is omitted, the result is stored in "this".
Returns pOut.
pOut.
x value of the vector to add.y value of the vector to add.Optional pOut: Vector2Computes the linear interpolation between this and (pX,pY) and stores the result in pOut.
pOut = this + pTime x ( (pX,pY) - this).
If pTime=0, pOut = this.
If pTime=1, pOut = (pX,pY).
If pOut is omitted, the result of the interpolation is stored in this.
No check is done to ensure pTime is in the range [0,1].
pOut.
x value of the destination vector.y value of the destination vector.Optional pOut: Vector2Computes the linear interpolation between this and pOther and stores the result in pOut.
pOut = this + pTime x ( pOther - this).
If pTime=0, pOut = this.
If pTime=1, pOut = pOther.
If pOut is omitted, the result of the interpolation is stored in this.
No check is done to ensure pTime is in the range [0,1].
pOut.
Computes the normalization of this (i.e. scales "this" such that pOut.length() == 1, a zero vector is left unchanged) and stores the result in pOut.
If pOut is omitted, "this" is normalized.
pOut.
Optional pOut: Vector2Computes the scale of this by the scalar pScalar, and stores the result in pOut.
pOut = pScalar x this.
If pOut is omitted, the result is stored in this.
pOut.
Optional pOut: Vector2Computes this - (pX,pY) and stores it into pOut.
If pOut is omitted, the result is stored in "this".
Returns pOut.
pOut.
x value of the vector to subtract.y value of the vector to subtract.Optional pOut: Vector2
A 2 dimensional vector.