Class: Vector

types~Vector(elements, subtypeopt)

new Vector(elements, subtypeopt)

Parameters:
Name Type Attributes Description
elements Float32Array | Array.<any>
subtype string <optional>
Source:

Members

length :Number

Returns the number of the elements.

Type:
  • Number
Source:

Methods

Symbol.iterator() → {IterableIterator.<any>}

Source:
Returns:

an iterator over the elements of the vector

Type
IterableIterator.<any>

at(index)

Parameters:
Name Type Description
index number
Source:

getSubtype() → {string|undefined}

Source:
Returns:

get the subtype string, e.g., "float", but it's optional so it can return undefined

Type
string | undefined

toString() → {string}

Returns the string representation of the vector.

Source:
Returns:
Type
string