# Class Acceleration

Acceleration sensor value

#### Hierarchy-Diagram ##### Legend class

## Properties

accuracy: Accuracy<Unit, number | Vector3>
isVector3: true
timestamp: number
unit: Unit
x: number
y: number
z: number

## Methods

• Iterating through a Vector3 instance will yield its components (x, y, z) in the corresponding order.

#### Returns Iterator<number, any, undefined>

• Adds v to this vector.

#### Returns Acceleration

• Sets this vector to a + b.

#### Returns Acceleration

• Copies value of v to this vector.

#### Returns Acceleration

• Sets this vector to cross product of itself and v.

#### Returns Acceleration

• Sets this vector to cross product of a and b.

#### Returns Acceleration

• Computes distance of this vector to v.

#### Deprecated

• Computes squared distance of this vector to v.

#### Returns Acceleration

• Divides this vector by scalar s. Set vector to ( 0, 0, 0 ) if s == 0.

#### Returns Acceleration

• Computes dot product of this vector and v.

#### Returns number

• Checks for strict equality of this vector and v.

• #### Returns Acceleration

• Sets this vector's x, y and z value from the provided array or array-like.

#### Parameters

• ##### array: number[] | ArrayLike<number>

the source array or array-like.

• ##### `Optional`offset: number

(optional) offset into the array. Default is 0.

#### Returns number

• Computes length of this vector.

#### Returns number

• Computes squared length of this vector.

#### Returns Acceleration

• Computes the Manhattan length (distance) from this vector to the given vector v

#### Returns number

• Computes the Manhattan length of this vector.

#### Returns Acceleration

• Multiplies this vector by scalar s.

#### Returns Acceleration

• Inverts this vector.

#### Returns Acceleration

• Normalizes this vector.

#### Returns Acceleration

• Sets this vector's x, y and z from Math.random

• #### Returns Acceleration

• Sets value of this vector.

#### Returns Acceleration

• Set the accuracy of the absolute position

#### Parameters

• ##### accuracy: number | Accuracy<Unit, number | Vector3>

Accuracy object or number

instance

#### Returns Acceleration

• Sets this vector's x, y and z components from the r, g, and b components of the specified Color | color.

#### Returns Acceleration

• Sets this vector's x, y and z components from the x, y, and z components of the specified Euler Angle.

#### Returns Acceleration

• Normalizes this vector and multiplies it by l.

#### Returns Acceleration

• Sets all values of this vector.

#### Returns Acceleration

• Sets x value of this vector.

#### Returns Vector3

• Sets y value of this vector.

#### Returns Vector3

• Sets z value of this vector.

#### Returns Vector3

• Subtracts v from this vector.

#### Returns Acceleration

• Sets this vector to a - b.

#### Returns Acceleration

• Returns an array [x, y, z], or copies x, y and z into the provided array.

#### Parameters

• ##### `Optional`array: number[]

(optional) array to store the vector to. If this is not provided, a new array will be created.

• ##### `Optional`offset: number

(optional) optional offset into the array.

#### Returns number[]

The created or provided array.

#### Returns Vector3Tuple

• Copies x, y and z into the provided array-like.

#### Parameters

• ##### array: ArrayLike<number>

array-like to store the vector to.

• ##### `Optional`offset: number

(optional) optional offset into the array-like.

#### Returns ArrayLike<number>

The provided array-like.

• Convert sensor value to tuple

#### Parameters

• ##### `Optional`unit: Unit

Conversion unit

#### Returns Vector3Tuple

Tuple of three numbers

#### Parameters

• ##### this: (new (...args) => T)
• new (...args): T

#### Parameters

• ##### this: (new (...args) => T)
• new (...args): T