Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Vector4

Hierarchy

Index

Constructors

constructor

Properties

rawElements

rawElements: IArray

Actual array represents components of this instance.

Accessors

ElementCount

  • get ElementCount(): number

W

  • get W(): number
  • set W(w: number): void

X

  • get X(): number
  • set X(x: number): void

Y

  • get Y(): number
  • set Y(y: number): void

Z

  • get Z(): number
  • set Z(z: number): void

magnitude

  • get magnitude(): number

normalized

sqrMagnitude

  • get sqrMagnitude(): number

Static One

Static WUnit

Static XUnit

Static YUnit

Static ZUnit

Static Zero

Methods

addWith

dotWith

equalWith

multiplyWith

nearlyEqualWith

  • nearlyEqualWith(v: Vector4): boolean

negateThis

normalizeThis

subtractWith

toDisplayString

  • toDisplayString(): string

toString

  • toString(): string

Static Protected ___elementEquals

Static Protected ___fromGenerationFunction

  • ___fromGenerationFunction<T>(v1: T, v2: T, gen: function): IArray

Static Protected ___nearlyElementEquals

Static Protected ___parse

Static add

Static angle

Static copy

Static dot

Static equals

Static lerp

Static max

Static min

Static multiply

Static nearlyEquals

Static negate

Static normalize

Static parse

Static subtract

Generated using TypeDoc