Vector

Vector

Abstract vector class

Constructor

new Vector()

Methods

(static) setupAliases(prototype, aliases)

Binds aliases to the different vector components.

Parameters:
Name Type Description
prototype Object

The prototype to bind to.

aliases Array.<Array.<string>>

Array of component aliases for each component index.

(static) setupIndices(prototype, count)

Binds aliases to the different vector components.

Parameters:
Name Type Description
prototype Object

The prototype to bind to.

count number

Number of index aliases.