Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DynamicFloat32Array

A class acting as a dynamic float32array used in the performance viewer

Hierarchy

  • DynamicFloat32Array

Index

Constructors

Accessors

Methods

Constructors

constructor

  • Creates a new DynamicFloat32Array with the desired item capacity.

    Parameters

    • itemCapacity: number

      The initial item capacity you would like to set for the array.

    Returns DynamicFloat32Array

Accessors

itemLength

  • get itemLength(): number
  • The number of items currently in the array.

    Returns number

Methods

atSearch playground for at

  • at(index: number): number
  • Gets value at index, NaN if no such index exists.

    Parameters

    • index: number

      the index to get the value at.

    Returns number

    the value at the index provided.

pushSearch playground for push

  • push(item: number): void
  • Pushes items to the end of the array.

    Parameters

    • item: number

      The item to push into the array.

    Returns void

subarraySearch playground for subarray

  • subarray(start: number, end: number): Float32Array
  • Gets a view of the original array from start to end (exclusive of end).

    Parameters

    • start: number

      starting index.

    • end: number

      ending index.

    Returns Float32Array

    a subarray of the original array.

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method