Class AngularVelocity

Hierarchy-Diagram

UML class diagram of AngularVelocity
Legend
icon for a class in the UML class diagram class

Hierarchy

Constructors

Properties

accuracy: Accuracy<AngularVelocityUnit, 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>

  • Parameters

    • v: Vector3

    Returns number

  • Computes distance of this vector to v.

    Parameters

    • v: Vector3

    Returns number

  • Computes squared distance of this vector to v.

    Parameters

    • v: Vector3

    Returns number

  • Computes dot product of this vector and v.

    Parameters

    • v: Vector3

    Returns number

  • Checks for strict equality of this vector and v.

    Parameters

    • v: Vector3

    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 AngularVelocity

  • Parameters

    • index: number

    Returns number

  • Computes length of this vector.

    Returns number

  • Computes squared length of this vector.

    Returns number

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

    see Taxicab Geometry

    Parameters

    • v: Vector3

    Returns number

  • Sets x value of this vector.

    Parameters

    • x: number

    Returns Vector3

  • Sets y value of this vector.

    Parameters

    • y: number

    Returns Vector3

  • Sets z value of this vector.

    Parameters

    • z: number

    Returns Vector3

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