Class: Vector3

Vector3

new Vector3(options)

A 3D vector.
Parameters:
Name Type Description
options object with following keys: * x - the x value * y - the y value * z - the z value
Source:

Methods

add(v)

Set the values of this vector to the sum of itself and the given vector.
Parameters:
Name Type Description
v the vector to add with
Source:

clone()

Clone a copy of this vector.
Source:
Returns:
the cloned vector

multiplyQuaternion(q)

Multiply the given Quaternion with this vector.
Parameters:
Name Type Description
q the quaternion to multiply with
Source:

subtract(v)

Set the values of this vector to the difference of itself and the given vector.
Parameters:
Name Type Description
v the vector to subtract with
Source: