Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/Vector2"

Index

Functions

angleBetweenVectors

  • angleBetweenVectors(vector1: object, vector2: object): number
  • Parameters

    • vector1: object
      • x: number
      • y: number
    • vector2: object
      • x: number
      • y: number

    Returns number

distance

length

  • length(vector: object): number
  • Parameters

    • vector: object
      • x: number
      • y: number

    Returns number

multiply

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

    Parameters

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

    Returns number[]

normalize

vec2Multiply

  • vec2Multiply(matrix: number[], vector2: Vector2): number[]
  • Parameters

    • matrix: number[]
    • vector2: Vector2

    Returns number[]

    result of multiplying matrix and vector.

Generated using TypeDoc