Class Temperature

class

Properties

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

Methods

• Adds v to this vector.

Returns Temperature

• Sets this vector to a + b.

Returns Temperature

• Copies value of v to this vector.

Returns Temperature

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

Returns Temperature

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

Returns Temperature

• Computes distance of this vector to v.

Returns number

• Computes squared distance of this vector to v.

Returns Temperature

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

Returns Temperature

• Computes dot product of this vector and v.

Returns number

• Checks for strict equality of this vector and v.

Returns boolean

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

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

Returns number

• Computes the Manhattan length of this vector.

Returns Temperature

• Multiplies this vector by scalar s.

Returns Temperature

• Inverts this vector.

Returns Temperature

• Normalizes this vector.

Returns Temperature

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

Returns Temperature

• Sets value of this vector.

Returns Temperature

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

Returns Temperature

• Normalizes this vector and multiplies it by l.

Returns Temperature

• Sets all values of this vector.

Returns Temperature

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

• Sets this vector to a - b.

Returns Temperature

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

Returns

The created or 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 Vector3Tuple

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

Returns

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.

Parameters

• this: (new (...args: any[]) => T)
• new (...args: any[]): T

Parameters

• this: (new (...args: any[]) => T)
• new (...args: any[]): T