# Class LinearVelocity

## Properties

accuracy: Accuracy<LinearVelocityUnit, number | Vector3>
isVector3: true
timestamp: number
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.

#### Parameters

• v: Vector3Like

• s: number

• v: Vector3
• s: number

#### Returns this

• Sets this vector to a + b.

#### Parameters

• a: Vector3Like
• b: Vector3Like

• v: Vector3

• #### Parameters

• axis: Vector3
• angle: number

• #### Parameters

• euler: Euler

• m: Matrix3

• m: Matrix4

• m: Matrix3

• #### Parameters

• q: QuaternionLike

• #### Parameters

• min: Vector3Like
• max: Vector3Like

• #### Parameters

• min: number
• max: number

• #### Parameters

• min: number
• max: number

#### Returns this

• Copies value of v to this vector.

#### Parameters

• v: Vector3Like

#### Returns this

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

#### Parameters

• a: Vector3Like

#### Returns this

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

#### Parameters

• a: Vector3Like
• b: Vector3Like

#### Returns this

• Computes distance of this vector to v.

#### Parameters

• v: Vector3Like

#### Returns number

• Computes squared distance of this vector to v.

#### Parameters

• v: Vector3Like

• #### Parameters

• v: Vector3Like

#### Returns this

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

• s: number

#### Returns this

• Computes dot product of this vector and v.

#### Parameters

• v: Vector3Like

#### Returns number

• Checks for strict equality of this vector and v.

#### Parameters

• v: Vector3Like

• #### Returns this

• 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.

• #### Parameters

• attribute: BufferAttribute | InterleavedBufferAttribute
• index: number

• #### Parameters

• index: number

#### Returns number

• Computes length of this vector.

#### Returns number

• Computes squared length of this vector.

• #### Parameters

• v: Vector3Like
• alpha: number

• #### Parameters

• v1: Vector3Like
• v2: Vector3Like
• alpha: number

#### Returns this

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

#### Parameters

• v: Vector3Like

#### Returns number

• Computes the Manhattan length of this vector.

• #### Parameters

• v: Vector3Like

• #### Parameters

• v: Vector3Like

• #### Parameters

• v: Vector3Like

#### Returns this

• Multiplies this vector by scalar s.

• s: number

• #### Parameters

• a: Vector3Like
• b: Vector3Like

#### Returns this

• Inverts this vector.

#### Returns this

• Normalizes this vector.

• #### Parameters

• camera: Camera

• #### Parameters

• planeNormal: Vector3

• v: Vector3

#### Returns this

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

• #### Parameters

• vector: Vector3Like

• #### Returns this

• Sets value of this vector.

• x: number
• y: number
• z: number

• #### Parameters

• index: number
• value: number

#### Returns this

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

• color: RGB

• #### Parameters

• s: Cylindrical

• #### Parameters

• theta: number
• y: number

#### Returns this

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

• e: Euler

• #### Parameters

• matrix: Matrix3
• index: number

• #### Parameters

• matrix: Matrix4
• index: number

• m: Matrix4

• m: Matrix4

• #### Parameters

• s: Spherical

• #### Parameters

• r: number
• phi: number
• theta: number

#### Returns this

• Normalizes this vector and multiplies it by l.

• l: number

#### Returns this

• Sets all values of this vector.

#### Parameters

• scalar: number

#### Returns this

• Sets x value of this vector.

• x: number

#### Returns this

• Sets y value of this vector.

• y: number

#### Returns this

• Sets z value of this vector.

• z: number

#### Returns this

• Subtracts v from this vector.

#### Parameters

• a: Vector3Like

• s: number

#### Returns this

• Sets this vector to a - b.

#### Parameters

• a: Vector3Like
• b: Vector3Like

#### Returns this

• 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.

• #### Parameters

• `Optional` array: Vector3Tuple
• `Optional` offset: 0

#### 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.

• m: Matrix4

• #### Parameters

• camera: Camera

#### Parameters

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

• `Rest` ...args: any[]

#### Returns T

• array: number[]
• unit: LinearVelocityUnit = LinearVelocityUnit.METER_PER_SECOND

#### Parameters

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

• `Rest` ...args: any[]

#### Returns T

• vector: Vector3