Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/Vector3"

Index

Functions

angleBetweenVectors

distance

length

multiply

  • multiply(matrix1: Array<number>, matrix2: Array<number>): number[]
  • Returns multiply of two matrixes.

    Parameters

    • matrix1: Array<number>
    • matrix2: Array<number>

    Returns number[]

normalize

rotationX

  • rotationX(angle: number): number[]
  • Returns rotation matrix for x axis.

    Parameters

    • angle: number

    Returns number[]

rotationY

  • rotationY(angle: number): number[]
  • Returns rotation matrix for y axis.

    Parameters

    • angle: number

    Returns number[]

rotationZ

  • rotationZ(angle: number): number[]
  • Returns rotation matrix for z axis.

    Parameters

    • angle: number

      angle in radians.

    Returns number[]

vecMultiply

  • vecMultiply(matrix: number[], vector3: Vector3): number[]
  • Parameters

    • matrix: number[]
    • vector3: Vector3

    Returns number[]

    [x, y, z, w] result of multiplying matrix and vector.

Generated using TypeDoc