JSDoc: Class: vec4

# Class: vec4

## vec4

4 Dimensional Vector

## Constructor

#### new vec4()

Source:
  - vec4.js, line 23

### Methods

#### (static) dist()

Alias for vec4.distance

Source:
  - vec4.js, line 548

#### (static) div()

Alias for vec4.divide

Source:
  - vec4.js, line 542

#### (static) forEach(a, stride, offset, count, fn, argopt) → {Array}

Perform some operation over an array of vec4s.

##### Parameters:

Name | Type | Attributes | Description
--- | --- | --- | ---
`a` | Array |  | the array of vectors to iterate over
`stride` | Number |  | Number of elements between the start of each vec4. If 0 assumes tightly packed
`offset` | Number |  | Number of elements to skip at the beginning of the array
`count` | Number |  | Number of vec4s to iterate over. If 0 iterates over entire array
`fn` | function |  | Function to call for each vector in the array
`arg` | Object | <optional> | additional argument to pass to fn

Source:
  - vec4.js, line 580

##### Returns:

a

Type
  Array

#### (static) length()

Alias for vec4.len

Source:
  - vec4.js, line 560

#### (static) mul()

Alias for vec4.multiply

Source:
  - vec4.js, line 536

#### (static) sqrDist()

Alias for vec4.squaredDistance

Source:
  - vec4.js, line 554

#### (static) sqrLen()

Alias for vec4.squaredLength

Source:
  - vec4.js, line 566

#### (static) sub()

Alias for vec4.subtract

Source:
  - vec4.js, line 530