Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Vector4

Index

Constructors

constructor

  • new Vector4(values?: number[]): Vector4

Properties

Private _values

_values: Float32Array = new Float32Array(4)

Accessors

a

a:

b

b:

g

g:

r

r:

rg

rg:

rgb

rgb:

rgba

rgba:

w

w:

x

x:

xy

xy:

xyz

xyz:

xyzw

xyzw:

y

y:

z

z:

Static one

one:

Static zero

zero:

Methods

add

at

  • at(index: number): number
  • Parameters

    • index: number

    Returns number

copy

divide

equals

  • equals(vector: Vector4, threshold?: number): boolean
  • Parameters

    • vector: Vector4
    • Default value threshold: number = EPSILON

    Returns boolean

length

  • length(): number

multiply

negate

normalize

reset

  • reset(): void

scale

squaredLength

  • squaredLength(): number

subtract

Static difference

Static lerp

Static product

Static quotient

Static sum

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc