• Gets a temporary vector. If a vector is passed in it will be copied to the temporary vector
    Temporary vectors are cached and reused internally. Don't store them!

    Returns Vector3

    a temporary vector

    Example

    const vec = getTempVector(1, 2, 3);
    const vec2 = getTempVector(vec);
    const vec3 = getTempVector(new Vector3(1, 2, 3));
    const vec4 = getTempVector(new DOMPointReadOnly(1, 2, 3));
    const vec5 = getTempVector();
  • Parameters

    Returns Vector3

  • Parameters

    • vec3: [number, number, number]

    Returns Vector3

  • Parameters

    • vec3: Vec3

    Returns Vector3

  • Parameters

    Returns Vector3

  • Parameters

    • x: number

    Returns Vector3

  • Parameters

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

    Returns Vector3

Generated using TypeDoc