Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Vec3

Hierarchy

  • Vec3

Index

Methods

Static add

  • add(a: Float32Array, b: Float32Array, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • b: Float32Array
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static copy

  • copy(a: Float32Array, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static create

  • create(): Float32Array

Static cross

  • cross(a: Float32Array, b: Float32Array, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • b: Float32Array
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static distance

  • distance(a: Float32Array, b: Float32Array): number

Static dot

  • dot(a: Float32Array, b: Float32Array): number

Static fromValues

  • fromValues(x: number, y: number, z: number): Float32Array
  • Parameters

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

    Returns Float32Array

Static inverse

  • inverse(a: Float32Array, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static magnitude

  • magnitude(a: Float32Array): number

Static multiply

  • multiply(a: Float32Array, b: Float32Array, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • b: Float32Array
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static negate

  • negate(a: Float32Array, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static normalize

  • normalize(a: Float32Array, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static scale

  • scale(a: Float32Array, b: number, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • b: number
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static set

  • set(x: number, y: number, z: number, out?: Float32Array): Float32Array
  • Parameters

    • x: number
    • y: number
    • z: number
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static squaredDistance

  • squaredDistance(a: Float32Array, b: Float32Array): number

Static subtract

  • subtract(a: Float32Array, b: Float32Array, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • b: Float32Array
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static transformMat4

  • transformMat4(a: Float32Array, m: Float32Array, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • m: Float32Array
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Static transformQuat

  • transformQuat(a: Float32Array, q: Float32Array, out?: Float32Array): Float32Array
  • Parameters

    • a: Float32Array
    • q: Float32Array
    • Default value out: Float32Array = new Float32Array(3)

    Returns Float32Array

Generated using TypeDoc