Class: Vector3

Vector3(options)

new Vector3(options)

A 3D vector.

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
x number <optional>
0

The x value.

y number <optional>
0

The y value.

z number <optional>
0

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 Vector3

The vector to add with.

Source:

clone() → {Vector3}

Clone a copy of this vector.

Source:
Returns:

The cloned vector.

Type
Vector3

multiplyQuaternion(q)

Multiply the given Quaternion with this vector.

Parameters:
Name Type Description
q Quaternion

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 Vector3

The vector to subtract with.

Source: